mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-28 17:49:11 -04:00
use single quotes per guideline, also quote when SPC or = are found
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@702 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
4a1b300acc
commit
0644b39884
1 changed files with 2 additions and 2 deletions
|
|
@ -521,8 +521,8 @@ char *perfdata (const char *label,
|
|||
{
|
||||
char *data = NULL;
|
||||
|
||||
if (index (label, '"'))
|
||||
asprintf (&data, "\"%s\"=%ld%s;", label, val, uom);
|
||||
if (strpbrk (label, "'= "))
|
||||
asprintf (&data, "'%s'=%ld%s;", label, val, uom);
|
||||
else
|
||||
asprintf (&data, "%s=%ld%s;", label, val, uom);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue