From 57427cf80fcc228cb5983bf344afa7eadef8b77f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 8 Nov 2011 19:45:41 -0500 Subject: [PATCH] Fixed uninitialized variable. --- src/events/SDL_gesture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/SDL_gesture.c b/src/events/SDL_gesture.c index 66c106678..26732a198 100644 --- a/src/events/SDL_gesture.c +++ b/src/events/SDL_gesture.c @@ -189,7 +189,7 @@ static int SDL_AddDollarGesture_one(SDL_GestureTouch* inTouch, SDL_FloatPoint* p 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;