Commit 3a8033587ba407d532464857dabb06c422d610ee

Philipp Wiesemann 2014-05-29T22:44:08

Fixed use of uninitialized variable warning in test program.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/controllermap.c b/test/controllermap.c
index a4f2517..fd7b144 100644
--- a/test/controllermap.c
+++ b/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[] = {