summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2c0d2b)
raw | patch | inline | side by side (parent: a2c0d2b)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 28 Aug 2003 03:21:32 +0000 (03:21 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 28 Aug 2003 03:21:32 +0000 (03:21 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@700 f882894a-f735-0410-b71e-b25c423dba1c
plugins/utils.c | patch | blob | history |
diff --git a/plugins/utils.c b/plugins/utils.c
index aad300686a0f1f6c173302fa7911a91591bf3065..5dbdb4de0c7f4beaa4233facade3beccfcf6e0a0 100644 (file)
--- a/plugins/utils.c
+++ b/plugins/utils.c
{
char *data = NULL;
- asprintf (&data, "\"%s\"=%ld%s;", label, val, uom);
+ if (index (label, '"'))
+ asprintf (&data, "\"%s\"=%ld%s;", label, val, uom);
+ else
+ asprintf (&data, "%s=%ld%s;", label, val, uom);
if (warnp)
asprintf (&data, "%s%ld;", data, warn);