From 6fd0e3590a70a77be848fcc809d28dc7e2cef891 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 11 Feb 2022 12:27:38 +0100 Subject: [PATCH] column: use new libsmartcols functions Signed-off-by: Karel Zak --- text-utils/column.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/text-utils/column.c b/text-utils/column.c index f9878e4422e..bd5f778c7e7 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -319,9 +319,7 @@ static void apply_columnflag_from_list(struct column_control *ctl, const char *l err_oom(); while (scols_table_next_column(ctl->tab, itr, &cl) == 0) { - struct libscols_cell *ce = scols_column_get_header(cl); - - if (ce == NULL || scols_cell_get_data(ce) == NULL) + if (!scols_column_get_name(cl)) column_set_flag(cl, flag); } scols_free_iter(itr);