From d2cd1267759871991fc04d62abf478961302d7fd Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 10 Mar 2026 07:05:34 +0000 Subject: util/nvmutil: explicitly check cmd nullptr null isn't guaranteed to be zero Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 3111be7a..71a4584c 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -851,7 +851,7 @@ static void run_cmd(size_t c) { check_command_num(c); - if (command[c].run) + if (command[c].run != NULL) command[c].run(); } -- cgit v1.2.1