Explorar el Código

Fixed use of uninitialized variable warning in test program.

Philipp Wiesemann hace 12 años
padre
commit
3a8033587b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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[] = {