diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-08 01:40:20 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-08 02:04:10 +0000 |
| commit | 26a69321aca030a7addfe57c4d8dbbd78f7ba973 (patch) | |
| tree | 8776f5f6a07fb45c5129119dfdb36d8bf208ef73 /config/u-boot/amd64coreboot | |
| parent | 1d17a8ffcf78abaac95c098cedaa4085831581cc (diff) | |
util/nvmutil: use enum for command index
if the enum is messed up, this patch also prevents
that. this is not to catch a runtime error, but
to intentionally trip up a maintainer that screws
up, prompting them to fix their future mistake.
we previously used a pointer directly, without
even checking index/NULL - that too is now covered,
except that we now use an indice for command[] and
execute the command from that, rather than directly
declaring a pointer.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/u-boot/amd64coreboot')
0 files changed, 0 insertions, 0 deletions
