commit c8a02eac6a5c17087b5f0c64f4b3d732bb16649b parent 8c27dfa1a6bcbfee1f40db689f53bcf204a207b8 Author: Louis Burda <quent.burda@gmail.com> Date: Tue, 6 Jun 2023 00:06:42 +0200 Fix check for header line Diffstat:
M | src/tabular.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/tabular.c b/src/tabular.c @@ -327,7 +327,8 @@ calc_params(const struct tabular_cfg *cfg, struct tabular_stats *stats, size_t i; int rc; - fmt->header_line = (cfg->vsep != 0 && cfg->xsep != 0); + fmt->header_line = ((cfg->vsep != NULL && *cfg->vsep) + && (cfg->xsep != NULL && *cfg->xsep)); fmt->line_limit = 0; if (cfg->fit_rows) {