Helps to initialize variables in the right function. :)
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Oct 2012 20:02:13 -0400
changeset 6546824535ce51b6
parent 6545 01216d38e4d9
child 6552 caa7decef32b
Helps to initialize variables in the right function. :)
src/render/SDL_render.c
     1.1 --- a/src/render/SDL_render.c	Wed Oct 03 19:20:53 2012 -0400
     1.2 +++ b/src/render/SDL_render.c	Wed Oct 03 20:02:13 2012 -0400
     1.3 @@ -1539,7 +1539,8 @@
     1.4                 const SDL_Rect * srcrect, const SDL_Rect * dstrect,
     1.5                 const double angle, const SDL_Point *center, const SDL_RendererFlip flip)
     1.6  {
     1.7 -    SDL_Rect real_srcrect, real_dstrect;
     1.8 +    SDL_Rect real_srcrect = { 0, 0, 0, 0 };
     1.9 +    SDL_Rect real_dstrect = { 0, 0, 0, 0 };
    1.10      SDL_Point real_center;
    1.11      SDL_FRect frect;
    1.12      SDL_FPoint fcenter;