render: fix some static analysis warnings.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 03 Dec 2018 02:06:17 -0500
changeset 124470844007ea1c2
parent 12446 3da9ecf40a13
child 12448 f167f874ae55
render: fix some static analysis warnings.
src/render/SDL_render.c
     1.1 --- a/src/render/SDL_render.c	Mon Dec 03 01:58:23 2018 -0500
     1.2 +++ b/src/render/SDL_render.c	Mon Dec 03 02:06:17 2018 -0500
     1.3 @@ -2658,6 +2658,7 @@
     1.4          frect.h = (float) rect->h;
     1.5      } else {
     1.6          SDL_Rect r;
     1.7 +        SDL_zero(r);
     1.8          SDL_RenderGetViewport(renderer, &r);
     1.9          frect.x = 0.0f;
    1.10          frect.y = 0.0f;
    1.11 @@ -2677,6 +2678,7 @@
    1.12      /* If 'rect' == NULL, then outline the whole surface */
    1.13      if (!rect) {
    1.14          SDL_Rect r;
    1.15 +        SDL_zero(r);
    1.16          SDL_RenderGetViewport(renderer, &r);
    1.17          frect.x = 0.0f;
    1.18          frect.y = 0.0f;