Fixed warning C6001: Using uninitialized memory 'devName'.
parent
0f34ca2e71
commit
e29393e407
|
@ -143,7 +143,7 @@ static SDL_bool SDL_IsXInputDevice(Uint16 vendor, Uint16 product)
|
||||||
|
|
||||||
for (i = 0; i < raw_device_count; i++) {
|
for (i = 0; i < raw_device_count; i++) {
|
||||||
RID_DEVICE_INFO rdi;
|
RID_DEVICE_INFO rdi;
|
||||||
char devName[MAX_PATH];
|
char devName[MAX_PATH] = { 0 };
|
||||||
UINT rdiSize = sizeof(rdi);
|
UINT rdiSize = sizeof(rdi);
|
||||||
UINT nameSize = SDL_arraysize(devName);
|
UINT nameSize = SDL_arraysize(devName);
|
||||||
DEVINST devNode;
|
DEVINST devNode;
|
||||||
|
|
Loading…
Reference in New Issue