summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-10 07:05:34 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-10 07:05:34 +0000
commitd2cd1267759871991fc04d62abf478961302d7fd (patch)
tree1d23a494618de14fd734e11e8eea03aba9912ee3 /util
parent978c30a961adc78bccacf7de2d495fce93eabd3a (diff)
util/nvmutil: explicitly check cmd nullptr
null isn't guaranteed to be zero Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
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();
}