File monitoring-plugins.check_snmp.arrayaddress.patch of Package monitoring-plugins

Index: monitoring-plugins-2.3.1/plugins/check_snmp.c
===================================================================
--- monitoring-plugins-2.3.1.orig/plugins/check_snmp.c
+++ monitoring-plugins-2.3.1/plugins/check_snmp.c
@@ -576,7 +576,7 @@ main (int argc, char **argv)
 			len = sizeof(perfstr)-strlen(perfstr)-1;
 			strncat(perfstr, show, len>ptr-show ? ptr-show : len);
 
-			if (type)
+			if (type[0])
 				strncat(perfstr, type, sizeof(perfstr)-strlen(perfstr)-1);
 
 			if (warning_thresholds) {
openSUSE Build Service is sponsored by