From dd109ccf07638451b72f586b62cbfc390fb99df6 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 3 Mar 2026 23:19:33 +0000 Subject: util/nvmutil: reset mac in main we currently only run the logic once, but i might expand nvmutil in the future, so that it can operate on multiple files. this would require using a different command syntax, e.g. getop-style syntax. this is a preventative bug fix, resetting global state. Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 585b4cee..bd343071 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -98,6 +98,8 @@ static void (*cmd)(void) = NULL; int main(int argc, char *argv[]) { + mac = NULL; + argv0 = argv[0]; if (argc < 2) usage(); -- cgit v1.2.1