Fix static analysis warning in SDL_render.c

Sylvain Becker 2020-05-15 21:33:47 +02:00
parent 5b65e0af01
commit 39690a0478
1 changed files with 2 additions and 1 deletions

View File

@ -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;