projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
command parser: Add support for the GETVAL command.
[collectd.git]
/
src
/
utils_cmd_putval.c
diff --git
a/src/utils_cmd_putval.c
b/src/utils_cmd_putval.c
index
ea3a16c
..
d3d2b63
100644
(file)
--- a/
src/utils_cmd_putval.c
+++ b/
src/utils_cmd_putval.c
@@
-152,8
+152,8
@@
cmd_status_t cmd_parse_putval (size_t argc, char **argv,
return (CMD_ERROR);
}
return (CMD_ERROR);
}
- ret_putval->identifier = identifier_copy;
- if (ret_putval->identifier == NULL)
+ ret_putval->
raw_
identifier = identifier_copy;
+ if (ret_putval->
raw_
identifier == NULL)
{
cmd_error (CMD_ERROR, err, "malloc failed.");
cmd_destroy_putval (ret_putval);
{
cmd_error (CMD_ERROR, err, "malloc failed.");
cmd_destroy_putval (ret_putval);
@@
-219,7
+219,7
@@
void cmd_destroy_putval (cmd_putval_t *putval)
if (putval == NULL)
return;
if (putval == NULL)
return;
- sfree (putval->identifier);
+ sfree (putval->
raw_
identifier);
for (i = 0; i < putval->vl_num; ++i)
{
for (i = 0; i < putval->vl_num; ++i)
{