summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-10 07:12:55 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-10 07:12:55 +0000
commit2a20251ad620d6604e55b28c824e77b1242ba6b1 (patch)
treef91ec276c10ab21e04ec446d67d2eecb4f2e9c3b
parentd2cd1267759871991fc04d62abf478961302d7fd (diff)
util/nvmutil: reset errno before run_cmd
in case any stale errors are present. at this point, we know that the code is likely safe and that nothing happened, because we quite obsessively call err() before that point. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--util/nvmutil/nvmutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 71a4584c..e281f4ef 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -505,6 +505,7 @@ main(int argc, char *argv[])
read_gbe_file();
read_checksums();
+ errno = 0;
run_cmd(cmd_index);
if (errno)