diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-10 07:05:34 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-10 07:05:34 +0000 |
| commit | d2cd1267759871991fc04d62abf478961302d7fd (patch) | |
| tree | 1d23a494618de14fd734e11e8eea03aba9912ee3 /util/nvmutil/nvmutil.c | |
| parent | 978c30a961adc78bccacf7de2d495fce93eabd3a (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/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
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(); } |
