Codebase list virt-viewer / 041857e
tests: ensure compiler knows the argv[0] is non-NULL ../tests/redirect-test.c /usr/i686-w64-mingw32/sys-root/mingw/include/winbase.h: In function 'WinMain': ../../tests/redirect-test.c:318:5: error: '%s' directive argument is null [-Werror=format-overflow=] 318 | fprintf(log_f, "argc %d argv[0] %s \n", argc, argv[0]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../tests/redirect-test.c:318:5: error: '%s' directive argument is null [-Werror=format-overflow=] Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Daniel P. Berrangé 3 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
314314 assert(log_f);
315315 setbuf(log_f, NULL);
316316
317 assert(argv[0]);
317318 fprintf(log_f, "argc %d argv[0] %s \n", argc, argv[0]);
318319
319320 if (argc >= 1) {