projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/utils_rrdcreate.c: Fix memory leak.
[collectd.git]
/
src
/
table.c
diff --git
a/src/table.c
b/src/table.c
index
9641c75
..
a3bacc7
100644
(file)
--- a/
src/table.c
+++ b/
src/table.c
@@
-278,8
+278,9
@@
static int tbl_config_table (oconfig_item_t *ci)
if (NULL == tbl->sep) {
log_err ("Table \"%s\" does not specify any separator.", tbl->file);
status = 1;
if (NULL == tbl->sep) {
log_err ("Table \"%s\" does not specify any separator.", tbl->file);
status = 1;
+ } else {
+ strunescape (tbl->sep, strlen (tbl->sep) + 1);
}
}
- strunescape (tbl->sep, strlen (tbl->sep) + 1);
if (NULL == tbl->instance) {
tbl->instance = sstrdup (tbl->file);
if (NULL == tbl->instance) {
tbl->instance = sstrdup (tbl->file);