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