Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed variable use before initialize warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 9, 2010
1 parent b26dcc3 commit c922d9d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/video/SDL_rect.c
Expand Up @@ -122,8 +122,10 @@ SDL_bool
SDL_EnclosePoints(const SDL_Point * points, int count, const SDL_Rect * clip,
SDL_Rect * result)
{
int minx, miny;
int maxx, maxy;
int minx = 0;
int miny = 0;
int maxx = 0;
int maxy = 0;
int x, y, i;

if (count < 1) {
Expand Down Expand Up @@ -222,7 +224,8 @@ SDL_bool
SDL_IntersectRectAndLine(const SDL_Rect * rect, int *X1, int *Y1, int *X2,
int *Y2)
{
int x, y;
int x = 0;
int y = 0;
int x1, y1;
int x2, y2;
int rectx1;
Expand Down

0 comments on commit c922d9d

Please sign in to comment.