diff options
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 51ad6f4e..a5a88d25 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -494,10 +494,10 @@ main (int argc, char **argv) | |||
494 | if (strpbrk (temp_string, " ='\"") == NULL) { | 494 | if (strpbrk (temp_string, " ='\"") == NULL) { |
495 | strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1); | 495 | strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1); |
496 | } else { | 496 | } else { |
497 | if (strpbrk (temp_string, "\"") == NULL) { | 497 | if (strpbrk (temp_string, "'") == NULL) { |
498 | quote_string="\""; | ||
499 | } else { | ||
500 | quote_string="'"; | 498 | quote_string="'"; |
499 | } else { | ||
500 | quote_string="\""; | ||
501 | } | 501 | } |
502 | strncat(perfstr, quote_string, sizeof(perfstr)-strlen(perfstr)-1); | 502 | strncat(perfstr, quote_string, sizeof(perfstr)-strlen(perfstr)-1); |
503 | strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1); | 503 | strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1); |