From dbd6defe9a02da1161f3cbd6348e643afe8beb9e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 3 Jun 2023 15:08:29 +0100 Subject: util/nvmutil: fix faulty arg check in practise, no other condition would be met and the program still worked. this is a pre-emptive fix. --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/nvmutil') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 69cf929a..905ca708 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -9,7 +9,7 @@ main(int argc, char *argv[]) xpledge("stdio rpath wpath unveil", NULL); for (int i = 0; i < 6; i++) if (strcmp(COMMAND, op[i].str) == 0) - if (!(cmd = argc >= op[i].args ? op[i].cmd : NULL)) + if ((cmd = argc >= op[i].args ? op[i].cmd : NULL)) break; if (cmd == cmd_setmac) strMac = (argc > 3) ? MAC_ADDRESS : strRMac; -- cgit v1.2.1