Browse Source

Fixed use of uninitialized variable warning in test program.

Philipp Wiesemann 11 năm trước cách đây
mục cha
commit
3a8033587b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/controllermap.c

+ 1 - 1
test/controllermap.c

@@ -109,7 +109,7 @@ WatchJoystick(SDL_Joystick * joystick)
     SDL_Rect dst;
     int s, _s;
     Uint8 alpha=200, alpha_step = -1;
-    Uint32 alpha_ticks;
+    Uint32 alpha_ticks = 0;
     char mapping[4096], temp[4096];
     MappingStep *step, *prev_step;
     MappingStep steps[] = {