Fixed warning C6001: Using uninitialized memory 'devName'.
This commit is contained in:
parent
0f34ca2e71
commit
e29393e407
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue