util/nvmutil: reset mac_buf for mac parsing

preventative fix for later, if the tool is ever expanded
to have a better command syntax, for supporting more than
one file at a time.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-07 02:35:03 +00:00
parent 14ad5a9818
commit 7bfe134a19
+2
View File
@@ -482,6 +482,8 @@ parse_mac_string(void)
if (strlen(mac_str) != 17)
err(EINVAL, "MAC address is the wrong length");
memset(mac_buf, 0, sizeof(mac_buf));
for (mac_byte = 0; mac_byte < 6; mac_byte++)
set_mac_byte(mac_byte);