util/nvmutil: initialise fname to empty string

otherwise, early calls to err_if make use of a NULL string
inside err()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-03 03:57:39 +00:00
parent de5087bbd5
commit b8e0513123
+1 -1
View File
@@ -44,7 +44,7 @@ uint16_t mac[3] = {0, 0, 0};
size_t partsize; size_t partsize;
int flags, rfd, fd, part, e = 1; int flags, rfd, fd, part, e = 1;
const char *strMac = NULL, *strRMac = "xx:xx:xx:xx:xx:xx", *fname = NULL; const char *strMac = NULL, *strRMac = "xx:xx:xx:xx:xx:xx", *fname = "";
typedef struct op { typedef struct op {
char *str; char *str;