Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Thu, 19 Dec 2019 15:58:16 -0800
changeset 13361b3155dc6a2ea
parent 13360 7df539d57d14
child 13362 2d73c614e067
Fixed compiler warning
src/joystick/hidapi/SDL_hidapijoystick.c
     1.1 --- a/src/joystick/hidapi/SDL_hidapijoystick.c	Thu Dec 19 15:21:44 2019 -0800
     1.2 +++ b/src/joystick/hidapi/SDL_hidapijoystick.c	Thu Dec 19 15:58:16 2019 -0800
     1.3 @@ -918,7 +918,7 @@
     1.4  static SDL_JoystickID
     1.5  HIDAPI_JoystickGetDeviceInstanceID(int device_index)
     1.6  {
     1.7 -    SDL_JoystickID joystickID;
     1.8 +    SDL_JoystickID joystickID = -1;
     1.9      SDL_LockMutex(SDL_HIDAPI_mutex);
    1.10      HIDAPI_GetDeviceByIndex(device_index, &joystickID);
    1.11      SDL_UnlockMutex(SDL_HIDAPI_mutex);