Skip to content

Commit

Permalink
More proper fix for Bugzilla #2965.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 27, 2015
1 parent 7964d67 commit 78f95c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IMG_xpm.c
Expand Up @@ -1166,6 +1166,10 @@ SDL_Surface *IMG_LoadXPM_RW(SDL_RWops *src)

SDL_Surface *IMG_ReadXPMFromArray(char **xpm)
{
if (!xpm) {
IMG_SetError("array is NULL");
return NULL;
}
return load_xpm(xpm, NULL);
}

Expand Down

0 comments on commit 78f95c0

Please sign in to comment.