소스 검색

Fixed compiler warning.

Ryan C. Gordon 11 년 전
부모
커밋
24006be288
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/video/x11/SDL_x11keyboard.c

+ 2 - 1
src/video/x11/SDL_x11keyboard.c

@@ -197,7 +197,8 @@ int
 X11_InitKeyboard(_THIS)
 {
     SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
-    int i, j;
+    int i = 0;
+    int j = 0;
     int min_keycode, max_keycode;
     struct {
         SDL_Scancode scancode;