]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: (refactor) refer to a parameter instead of a file static var
authorMasatake YAMATO <yamato@redhat.com>
Fri, 1 Mar 2024 01:07:24 +0000 (10:07 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Tue, 26 Mar 2024 13:44:44 +0000 (22:44 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsblk.c

index 30bd2edfdff22a9fb4353ef3ca78333481319a3c..fbc0356451b62bb6927d47cfce4f14b08ff51eac 100644 (file)
@@ -2264,7 +2264,7 @@ static void init_scols_filter(struct libscols_table *tb, struct libscols_filter
                }
                if (!col) {
                        add_column(id);
-                       col = scols_table_new_column(lsblk->table, ci->name,
+                       col = scols_table_new_column(tb, ci->name,
                                                     ci->whint, SCOLS_FL_HIDDEN);
                        if (!col)
                                err(EXIT_FAILURE,_("failed to allocate output column"));