X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftable.c;h=a3bacc7ae6e73b2e7f7b587f25833a9cd9374e7a;hb=9204a08464154faaca89690ad205989c121335cb;hp=9641c759b2b059a010492b39d6e583196b8038fd;hpb=4374305bd9523620d4291c9be5bfd81640f789a7;p=collectd.git diff --git a/src/table.c b/src/table.c index 9641c759..a3bacc7a 100644 --- 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; + } else { + strunescape (tbl->sep, strlen (tbl->sep) + 1); } - strunescape (tbl->sep, strlen (tbl->sep) + 1); if (NULL == tbl->instance) { tbl->instance = sstrdup (tbl->file);