mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix clang-tidy clang-analyzer-optin.portability.UnixAPI
Assumes that `argc` is `0`, which is impossible.
This commit is contained in:
parent
63a7063242
commit
59f4ae06d0
|
@ -4015,6 +4015,7 @@ void cmdline_fix(int *argc, const char ***argv)
|
||||||
int wide_argc = 0;
|
int wide_argc = 0;
|
||||||
WCHAR **wide_argv = CommandLineToArgvW(GetCommandLineW(), &wide_argc);
|
WCHAR **wide_argv = CommandLineToArgvW(GetCommandLineW(), &wide_argc);
|
||||||
dbg_assert(wide_argv != NULL, "CommandLineToArgvW failure");
|
dbg_assert(wide_argv != NULL, "CommandLineToArgvW failure");
|
||||||
|
dbg_assert(wide_argc > 0, "Invalid argc value");
|
||||||
|
|
||||||
int total_size = 0;
|
int total_size = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue