IMG_lbm.c
changeset 98 9f94c4674cc9
parent 97 e1161bd417c4
child 99 9256da39d67e
     1.1 --- a/IMG_lbm.c	Sun Jan 04 17:41:55 2004 +0000
     1.2 +++ b/IMG_lbm.c	Sun Jan 04 22:04:38 2004 +0000
     1.3 @@ -94,6 +94,10 @@
     1.4  	error   = NULL;
     1.5  	MiniBuf = NULL;
     1.6  
     1.7 +	if ( !src ) {
     1.8 +		/* The error message has been set in SDL_RWFromFile */
     1.9 +		return NULL;
    1.10 +	}
    1.11  	if ( !SDL_RWread( src, id, 4, 1 ) )
    1.12  	{
    1.13  		error="error reading IFF chunk";