summaryrefslogtreecommitdiffstats
path: root/lib/perfdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/perfdata.c')
-rw-r--r--lib/perfdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/perfdata.c b/lib/perfdata.c
index 2930a8bc..b447b8ea 100644
--- a/lib/perfdata.c
+++ b/lib/perfdata.c
@@ -37,7 +37,7 @@ char *pd_to_string(mp_perfdata pd) {
37 if (strchr(pd.label, '\'') == NULL) { 37 if (strchr(pd.label, '\'') == NULL) {
38 asprintf(&result, "'%s'=", pd.label); 38 asprintf(&result, "'%s'=", pd.label);
39 } else { 39 } else {
40 // we have a illegal single quote in the string 40 // we have an illegal single quote in the string
41 // replace it silently instead of complaining 41 // replace it silently instead of complaining
42 for (char *ptr = pd.label; *ptr == '\0'; ptr++) { 42 for (char *ptr = pd.label; *ptr == '\0'; ptr++) {
43 if (*ptr == '\'') { 43 if (*ptr == '\'') {