Skip to content

Commit

Permalink
Whoops; I should read the code before I change it next time; regressing
Browse files Browse the repository at this point in the history
the Sound_SetError() "fix".
  • Loading branch information
icculus committed Nov 19, 2001
1 parent 15607ab commit 9717f47
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SDL_sound.c
Expand Up @@ -244,8 +244,11 @@ void Sound_ClearError(void)
*/
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 */


Expand Down

0 comments on commit 9717f47

Please sign in to comment.