Explorar o código

Fixed compiler warning

Sam Lantinga %!s(int64=5) %!d(string=hai) anos
pai
achega
2481ab9340
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/joystick/hidapi/SDL_hidapijoystick.c

+ 1 - 1
src/joystick/hidapi/SDL_hidapijoystick.c

@@ -918,7 +918,7 @@ HIDAPI_JoystickGetDeviceGUID(int device_index)
 static SDL_JoystickID
 HIDAPI_JoystickGetDeviceInstanceID(int device_index)
 {
-    SDL_JoystickID joystickID;
+    SDL_JoystickID joystickID = -1;
     SDL_LockMutex(SDL_HIDAPI_mutex);
     HIDAPI_GetDeviceByIndex(device_index, &joystickID);
     SDL_UnlockMutex(SDL_HIDAPI_mutex);