mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-23 15:17:35 -04:00
Always quote perfdata labels
This commit is contained in:
parent
f413ac38e3
commit
1921cfccd6
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ char *pd_value_to_string(const mp_perfdata_value pd) {
|
|||
char *pd_to_string(mp_perfdata pd) {
|
||||
assert(pd.label != NULL);
|
||||
char *result = NULL;
|
||||
asprintf(&result, "%s=", pd.label);
|
||||
asprintf(&result, "'%s'=", pd.label);
|
||||
|
||||
asprintf(&result, "%s%s", result, pd_value_to_string(pd.value));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue