diff --git a/src/events/SDL_gesture.c b/src/events/SDL_gesture.c index 020b36388..e987fcfbf 100644 --- a/src/events/SDL_gesture.c +++ b/src/events/SDL_gesture.c @@ -391,11 +391,12 @@ static int dollarNormalize(const SDL_DollarPath *path,SDL_FloatPoint *points) static float dollarRecognize(const SDL_DollarPath *path,int *bestTempl,SDL_GestureTouch* touch) { - - SDL_FloatPoint points[DOLLARNPOINTS] = {{0}}; + SDL_FloatPoint points[DOLLARNPOINTS]; int i; float bestDiff = 10000; + SDL_memset(points, 0, sizeof(points)); + dollarNormalize(path,points); //PrintPath(points);