changeset 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 77482005beb6
children d8904267d23c
files SDL_sound.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
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 */