Skip to content

Commit

Permalink
column: use new libsmartcols functions
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Feb 11, 2022
1 parent c239e4d commit 6fd0e35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions text-utils/column.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6fd0e35

Please sign in to comment.