IMG_pnm.c
changeset 154 201cc5c1b373
parent 121 1bf9c0c87374
child 186 5fbbeabf647f
     1.1 --- a/IMG_pnm.c	Tue Feb 13 10:00:29 2007 +0000
     1.2 +++ b/IMG_pnm.c	Tue Feb 13 10:09:17 2007 +0000
     1.3 @@ -44,6 +44,8 @@
     1.4  	int is_PNM;
     1.5  	char magic[2];
     1.6  
     1.7 +	if ( !src )
     1.8 +		return 0;
     1.9  	start = SDL_RWtell(src);
    1.10  	is_PNM = 0;
    1.11  	if ( SDL_RWread(src, magic, sizeof(magic), 1) ) {