Fix static analysis warning in SDL_render.c
diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index ce83553..b506556 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;