IMG_xcf.c
changeset 154 201cc5c1b373
parent 128 3ed445f2f4fd
child 176 80d451f56922
     1.1 --- a/IMG_xcf.c	Tue Feb 13 10:00:29 2007 +0000
     1.2 +++ b/IMG_xcf.c	Tue Feb 13 10:09:17 2007 +0000
     1.3 @@ -213,6 +213,8 @@
     1.4  	int is_XCF;
     1.5  	char magic[14];
     1.6  
     1.7 +	if ( !src )
     1.8 +		return 0;
     1.9  	start = SDL_RWtell(src);
    1.10  	is_XCF = 0;
    1.11  	if ( SDL_RWread(src, magic, sizeof(magic), 1) ) {