From 39690a047897e470b68b51732463dc07a786cf5e Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Fri, 15 May 2020 21:33:47 +0200 Subject: [PATCH] Fix static analysis warning in SDL_render.c --- src/render/SDL_render.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index ce8355399..b50655652 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -1745,7 +1745,8 @@ SDL_LockTextureToSurface(SDL_Texture *texture, const SDL_Rect *rect, { SDL_Rect real_rect; void *pixels = NULL; - int pitch, ret; + int pitch = 0; /* fix static analysis */ + int ret; if (texture == NULL || surface == NULL) { return -1;