From: Stefan Weil Date: Sun, 19 Mar 2023 10:19:48 +0000 (+0100) Subject: firmware-utils: fix use of NULL string progname X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a170683c0e11ecc92b4ff74f34f77e180e15071a;p=project%2Ffirmware-utils.git 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 --- 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;