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