[misc] fix some Coverity warnings

This commit is contained in:
Pete Batard 2021-08-02 13:22:49 +01:00
parent 436584fcc0
commit 8538ce0590
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
7 changed files with 14 additions and 9 deletions

View file

@ -3137,7 +3137,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
BOOL disable_hogger = FALSE, previous_enable_HDDs = FALSE, vc = IsRegistryNode(REGKEY_HKCU, vs_reg);
BOOL alt_pressed = FALSE, alt_command = FALSE;
BYTE *loc_data;
DWORD loc_size, u, size = sizeof(u);
DWORD loc_size, u = 0, size = sizeof(u);
char tmp_path[MAX_PATH] = "", loc_file[MAX_PATH] = "", ini_path[MAX_PATH] = "", ini_flags[] = "rb";
char *tmp, *locale_name = NULL, **argv = NULL;
wchar_t **wenv, **wargv;