From 843f9540562930391b7db224664adbf951f11275 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Wed, 27 Jun 2012 00:02:09 +0200 Subject: check_snmp: use single quotes for perf data labels --- plugins/check_snmp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/check_snmp.c') 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) if (strpbrk (temp_string, " ='\"") == NULL) { strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1); } else { - if (strpbrk (temp_string, "\"") == NULL) { - quote_string="\""; - } else { + if (strpbrk (temp_string, "'") == NULL) { quote_string="'"; + } else { + quote_string="\""; } strncat(perfstr, quote_string, sizeof(perfstr)-strlen(perfstr)-1); strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1); -- cgit v1.2.3-74-g34f1