X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftable.c;h=beded1ae9eeafef7e7bbfe0232ee80e954622fbe;hb=26314b8c3fb08e1f0017ee9a6277b7fe370bf2a0;hp=c6b5badfff43c7757686ec25cb7820a4bf2c42a9;hpb=dbeee0cfad69e701ea2665001fd9f2bce49c9489;p=collectd.git diff --git a/src/table.c b/src/table.c index c6b5badf..beded1ae 100644 --- a/src/table.c +++ b/src/table.c @@ -283,8 +283,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; + } else { + strunescape (tbl->sep, strlen (tbl->sep) + 1); } - strunescape (tbl->sep, strlen (tbl->sep) + 1); if (NULL == tbl->instance) { tbl->instance = sstrdup (tbl->file);