diff SDL_sound.c @ 165:9b26ed9eaf04

Whoops; I should read the code before I change it next time; regressing the Sound_SetError() "fix".
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 19 Nov 2001 16:44:10 +0000
parents b6d6f994e970
children 82acaa7107c2
line wrap: on
line diff
--- 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 */