summaryrefslogtreecommitdiffstats
path: root/plugins/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/utils.c')
-rw-r--r--plugins/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c
index 5dbdb4d..ec25473 100644
--- a/plugins/utils.c
+++ b/plugins/utils.c
@@ -521,8 +521,8 @@ char *perfdata (const char *label,
521{ 521{
522 char *data = NULL; 522 char *data = NULL;
523 523
524 if (index (label, '"')) 524 if (strpbrk (label, "'= "))
525 asprintf (&data, "\"%s\"=%ld%s;", label, val, uom); 525 asprintf (&data, "'%s'=%ld%s;", label, val, uom);
526 else 526 else
527 asprintf (&data, "%s=%ld%s;", label, val, uom); 527 asprintf (&data, "%s=%ld%s;", label, val, uom);
528 528