Browse Source

Fixed use of uninitialized variable warning in test program.

Philipp Wiesemann 11 years ago
parent
commit
3a8033587b
1 changed files with 1 additions and 1 deletions
  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[] = {