From: Karel Zak Date: Fri, 11 Feb 2022 11:27:38 +0000 (+0100) Subject: column: use new libsmartcols functions X-Git-Tag: v2.38-rc2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fd0e3590a70a77be848fcc809d28dc7e2cef891;p=thirdparty%2Futil-linux.git column: use new libsmartcols functions Signed-off-by: Karel Zak --- diff --git a/text-utils/column.c b/text-utils/column.c index f9878e4422..bd5f778c7e 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);