]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
column: use new libsmartcols functions
authorKarel Zak <kzak@redhat.com>
Fri, 11 Feb 2022 11:27:38 +0000 (12:27 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Feb 2022 11:27:38 +0000 (12:27 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/column.c

index f9878e4422e8f2b50babd2c0441d2793fb6e4cfd..bd5f778c7e7a1eb48ff1d4ae327fa1217d5c064a 100644 (file)
@@ -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);