util/nvmutil: explicitly check cmd nullptr

null isn't guaranteed to be zero

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-10 07:05:34 +00:00
parent 978c30a961
commit d2cd126775
+1 -1
View File
@@ -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();
}