Skip to content

Commit

Permalink
Fix static analysis warning in SDL_render.c
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed May 15, 2020
1 parent 5b65e0a commit 39690a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/render/SDL_render.c
Expand Up @@ -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;
Expand Down

0 comments on commit 39690a0

Please sign in to comment.