Skip to content

Commit 45feacf

Browse files
Sackzementslouken
authored andcommitted
emscripten tests: fix warning: uninitialized variable
1 parent a743fb5 commit 45feacf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testautomation_rect.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ static int SDLCALL rect_testIntersectRectEmpty(void *arg)
916916
*/
917917
static int SDLCALL rect_testIntersectRectParam(void *arg)
918918
{
919-
SDL_Rect rectA;
919+
SDL_Rect rectA = { 0 };
920920
SDL_Rect rectB = { 0 };
921921
SDL_Rect result;
922922
bool intersection;
@@ -1165,7 +1165,7 @@ static int SDLCALL rect_testHasIntersectionEmpty(void *arg)
11651165
*/
11661166
static int SDLCALL rect_testHasIntersectionParam(void *arg)
11671167
{
1168-
SDL_Rect rectA;
1168+
SDL_Rect rectA = { 0 };
11691169
SDL_Rect rectB = { 0 };
11701170
bool intersection;
11711171

@@ -1726,7 +1726,7 @@ static int SDLCALL rect_testUnionRectInside(void *arg)
17261726
*/
17271727
static int SDLCALL rect_testUnionRectParam(void *arg)
17281728
{
1729-
SDL_Rect rectA, rectB = { 0 };
1729+
SDL_Rect rectA = { 0 }, rectB = { 0 };
17301730
SDL_Rect result;
17311731

17321732
/* invalid parameter combinations */

0 commit comments

Comments
 (0)