소스 검색

Fixed compiler warning

Sam Lantinga 5 년 전
부모
커밋
2481ab9340
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);