Skip to content

Commit

Permalink
Backed out changeset ff70598ad608
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 03ef44b commit 01ab913
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions IMG_xpm.c
Expand Up @@ -335,12 +335,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 01ab913

Please sign in to comment.