# HG changeset patch # User Ryan C. Gordon # Date 1006188250 0 # Node ID 9b26ed9eaf04c69d42cc3be174069e4ce1a309e5 # Parent 77482005beb6efa2641558f7fd4197a3cd18db45 Whoops; I should read the code before I change it next time; regressing the Sound_SetError() "fix". diff -r 77482005beb6 -r 9b26ed9eaf04 SDL_sound.c --- a/SDL_sound.c Mon Nov 19 16:39:42 2001 +0000 +++ b/SDL_sound.c Mon Nov 19 16:44:10 2001 +0000 @@ -244,8 +244,11 @@ */ void Sound_SetError(const char *err) { - SNDDBG(("Sound_SetError(\"%s\");\n", err)); - SDL_SetError(err); + if (err != NULL) + { + SNDDBG(("Sound_SetError(\"%s\");\n", err)); + SDL_SetError(err); + } /* if */ } /* Sound_SetError */