Fixed warning C6001: Using uninitialized memory 'devName'.

main
Sam Lantinga 2023-12-04 21:44:26 -08:00
parent 0f34ca2e71
commit e29393e407
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ static SDL_bool SDL_IsXInputDevice(Uint16 vendor, Uint16 product)
for (i = 0; i < raw_device_count; i++) {
RID_DEVICE_INFO rdi;
char devName[MAX_PATH];
char devName[MAX_PATH] = { 0 };
UINT rdiSize = sizeof(rdi);
UINT nameSize = SDL_arraysize(devName);
DEVINST devNode;