mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user