Skip to content

Commit

Permalink
Backed out changeset 65f1bb7a3eb2
Browse files Browse the repository at this point in the history
This wasn't a correct fix, src is legitimately NULL when reading from memory.
  • Loading branch information
icculus committed May 27, 2015
1 parent cad0c81 commit 7964d67
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions IMG_xpm.c
Expand Up @@ -1007,12 +1007,8 @@ static SDL_Surface *load_xpm(char **xpm, SDL_RWops *src)
linebuf = NULL;
buflen = 0;

if (src)
if (src)
start = SDL_RWtell(src);
else {
error = "src is NULL";
goto done;
}

if (xpm)
xpmlines = &xpm;
Expand Down

0 comments on commit 7964d67

Please sign in to comment.