Fix some clang analyzer warnings.
This fixes some analyzer warnings and a couple of minor memory leaks.
This commit is contained in:
parent
b01b128353
commit
e007150b45
6 changed files with 15 additions and 5 deletions
|
@ -392,7 +392,7 @@ 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];
|
||||
SDL_FloatPoint points[DOLLARNPOINTS] = {};
|
||||
int i;
|
||||
float bestDiff = 10000;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue