summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-03 23:19:33 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-03 23:19:33 +0000
commitdd109ccf07638451b72f586b62cbfc390fb99df6 (patch)
treef41cd5546d62fd00cda862bc49b2743c47fb74b6 /util
parent790009f58ea8ebacfd3a66b936240cd19c27a42e (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 2 insertions, 0 deletions
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();