summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Weil2023-03-19 10:19:48 +0000
committerAlexander Couzens2023-08-30 14:48:29 +0000
commita170683c0e11ecc92b4ff74f34f77e180e15071a (patch)
treef8e391bd65f1ff833591cd70b67b33a891194e67
parent9e2de8515be15e2b61ae518ce592e5b446ef2d48 (diff)
downloadfirmware-utils-a170683c0e11ecc92b4ff74f34f77e180e15071a.tar.gz
firmware-utils: fix use of NULL string progname
The compiler complains about several lines which use `progname`, but that char pointer was NULL. Fixes: 16cff6c7ca36 ("firmware-utils: fix unused variable warnings") Signed-off-by: Stefan Weil <sw@weilnetz.de>
-rw-r--r--src/mkzcfw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mkzcfw.c b/src/mkzcfw.c
index 1d6fbc4..b36967d 100644
--- a/src/mkzcfw.c
+++ b/src/mkzcfw.c
@@ -356,6 +356,8 @@ int main(int argc, char *argv[])
{
int ret = EXIT_FAILURE;
+ progname = basename(argv[0]);
+
while ( 1 ) {
int c;