From 0d6a0a6e7dcba18205b81295c2b744cfa6943017 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Fri, 1 Mar 2024 10:07:24 +0900 Subject: [PATCH] lsblk: (refactor) refer to a parameter instead of a file static var Signed-off-by: Masatake YAMATO --- misc-utils/lsblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 30bd2edfdf..fbc0356451 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -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")); -- 2.47.3