music.c
changeset 336 ab67d7115d3e
parent 335 061b50c9cc5c
child 357 d6d0cfdbea65
     1.1 --- a/music.c	Tue Dec 19 19:41:24 2006 +0000
     1.2 +++ b/music.c	Tue Dec 19 19:42:07 2006 +0000
     1.3 @@ -1364,6 +1364,11 @@
     1.4  	Mix_Music *music;
     1.5  	int start;
     1.6  
     1.7 +	if (!rw) {
     1.8 +		Mix_SetError("RWops pointer is NULL");
     1.9 +		return NULL;
    1.10 +	}
    1.11 +
    1.12  	/* Figure out what kind of file this is */
    1.13  	start = SDL_RWtell(rw);
    1.14  	if (SDL_RWread(rw,magic,1,4)!=4) {