diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-03 03:57:39 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-03 03:57:39 +0000 |
| commit | b8e05131237575356cff751c638f96bc3b844d07 (patch) | |
| tree | 972a13e84b5d0a0a4eeb42963c8c0d526daec633 /util | |
| parent | de5087bbd50e50a3015bd77b4f71b6a7df550d24 (diff) | |
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>
Diffstat (limited to 'util')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 6bc02e35..c171a1b8 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -44,7 +44,7 @@ uint16_t mac[3] = {0, 0, 0}; size_t partsize; 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 { char *str; |
