X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftable.c;h=beded1ae9eeafef7e7bbfe0232ee80e954622fbe;hb=0003c4d3c184f0f437499d6073cd023dc7b659c2;hp=c6b5badfff43c7757686ec25cb7820a4bf2c42a9;hpb=9e5cdde4656070893ecf59c6234af0593bdda1a0;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);