aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.de> 2012-06-27 00:02:09 +0200
committerGravatar Sven Nierlein <sven@nierlein.de> 2012-06-27 00:02:09 +0200
commit843f9540562930391b7db224664adbf951f11275 (patch)
treea716cf76399c9c271699a45d79fde1387e4837b3 /plugins/check_snmp.c
parent9c886d049d1dec9be0ac147c57d2094d2d4773da (diff)
downloadmonitoring-plugins-843f9540562930391b7db224664adbf951f11275.tar.gz
check_snmp: use single quotes for perf data labels
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c6
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)
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);