forked from pool/monitoring-plugins
1555f5b100
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=4
14 lines
468 B
Diff
14 lines
468 B
Diff
Index: plugins/check_snmp.c
|
|
===================================================================
|
|
--- plugins/check_snmp.c.orig
|
|
+++ plugins/check_snmp.c
|
|
@@ -567,7 +567,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);
|
|
strncat(perfstr, " ", sizeof(perfstr)-strlen(perfstr)-1);
|
|
}
|