mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 23:09:40 +02:00
util/nvmutil: fix arg_cmd initialisation
i declare it, using the 3rd argument, which might not be available if only the file name is declared. this fixes that. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -130,14 +130,13 @@ static void
|
||||
set_cmd(int argc, char *argv[])
|
||||
{
|
||||
size_t i;
|
||||
const char *arg_cmd = argv[2];
|
||||
|
||||
if (argc == 2) {
|
||||
cmd = cmd_setmac;
|
||||
return;
|
||||
}
|
||||
|
||||
arg_cmd = argv[2];
|
||||
const char *arg_cmd = argv[2];
|
||||
|
||||
for (i = 0; (i < items(ops)) && (cmd == NULL); i++) {
|
||||
if (strcmp(arg_cmd, ops[i].str) != 0)
|
||||
|
||||
Reference in New Issue
Block a user