Fixed uninitialized variable.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 08 Nov 2011 19:45:41 -0500
changeset 6071 72f06ae88e7e
parent 6070 69b6275bb5dc
child 6072 8b473f33c766
Fixed uninitialized variable.
src/events/SDL_gesture.c
--- a/src/events/SDL_gesture.c	Tue Nov 08 16:24:02 2011 -0500
+++ b/src/events/SDL_gesture.c	Tue Nov 08 19:45:41 2011 -0500
@@ -189,7 +189,7 @@
 
 static int SDL_AddDollarGesture(SDL_GestureTouch* inTouch, SDL_FloatPoint* path)
 {
-    int index;
+    int index = -1;
     int i = 0;
     if (inTouch == NULL) {
         if (SDL_numGestureTouches == 0) return -1;