X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Ftable.c;h=a3bacc7ae6e73b2e7f7b587f25833a9cd9374e7a;hb=36d4680ddbd5629badccb4448d053190ac5a3175;hp=9641c759b2b059a010492b39d6e583196b8038fd;hpb=72fefab2a6bf8111fb68816a1c1da30afa5c2d92;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);