File nagios-plugins-2.1.1-no_return_utils_base.patch of Package nagios-core-plugins

diff -Ppru nagios-plugins-2.1.1.orig/lib/utils_base.c nagios-plugins-2.1.1/lib/utils_base.c
--- nagios-plugins-2.1.1.orig/lib/utils_base.c	2015-07-30 23:40:06.000000000 +0200
+++ nagios-plugins-2.1.1/lib/utils_base.c	2015-09-22 14:38:17.867898395 +0200
@@ -441,6 +441,8 @@ char* _np_state_calculate_location_prefi
 		if(env_dir && env_dir[0] != '\0')
 			return env_dir;
 		return NP_STATE_DIR_PREFIX;
+	} else {
+		return NULL;
 	}
 }
openSUSE Build Service is sponsored by