summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/perfdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/perfdata.c b/lib/perfdata.c
index 138df53b..f4eaf843 100644
--- a/lib/perfdata.c
+++ b/lib/perfdata.c
@@ -39,7 +39,7 @@ char *pd_to_string(mp_perfdata pd) {
39 } else { 39 } else {
40 // we have an 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 == '\'') {
44 *ptr = '_'; 44 *ptr = '_';
45 } 45 }