Fix static analysis warning in SDL_render.c
authorSylvain Becker <sylvain.becker@gmail.com>
Fri, 15 May 2020 21:33:47 +0200
changeset 13811eff2d605bef5
parent 13810 f1127e895e08
child 13812 5c4ad9fc7b21
Fix static analysis warning in SDL_render.c
src/render/SDL_render.c
     1.1 --- a/src/render/SDL_render.c	Fri May 15 21:12:23 2020 +0200
     1.2 +++ b/src/render/SDL_render.c	Fri May 15 21:33:47 2020 +0200
     1.3 @@ -1745,7 +1745,8 @@
     1.4  {
     1.5      SDL_Rect real_rect;
     1.6      void *pixels = NULL;
     1.7 -    int pitch, ret;
     1.8 +    int pitch = 0; /* fix static analysis */
     1.9 +    int ret;
    1.10  
    1.11      if (texture == NULL || surface == NULL) {
    1.12          return -1;