Fix clang-tidy clang-analyzer-optin.portability.UnixAPI

Assumes that `argc` is `0`, which is impossible.
This commit is contained in:
Robert Müller 2023-10-05 22:30:34 +02:00
parent 63a7063242
commit 59f4ae06d0

View file

@ -4015,6 +4015,7 @@ void cmdline_fix(int *argc, const char ***argv)
int wide_argc = 0;
WCHAR **wide_argv = CommandLineToArgvW(GetCommandLineW(), &wide_argc);
dbg_assert(wide_argv != NULL, "CommandLineToArgvW failure");
dbg_assert(wide_argc > 0, "Invalid argc value");
int total_size = 0;