diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index 5dbdb4de..ec254739 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 | ||