comparison 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
comparison
equal deleted inserted replaced
164:77482005beb6 165:9b26ed9eaf04
242 /* 242 /*
243 * This is declared in the internal header. 243 * This is declared in the internal header.
244 */ 244 */
245 void Sound_SetError(const char *err) 245 void Sound_SetError(const char *err)
246 { 246 {
247 SNDDBG(("Sound_SetError(\"%s\");\n", err)); 247 if (err != NULL)
248 SDL_SetError(err); 248 {
249 SNDDBG(("Sound_SetError(\"%s\");\n", err));
250 SDL_SetError(err);
251 } /* if */
249 } /* Sound_SetError */ 252 } /* Sound_SetError */
250 253
251 254
252 /* 255 /*
253 * -ansi and -pedantic flags prevent use of strcasecmp() on Linux, and 256 * -ansi and -pedantic flags prevent use of strcasecmp() on Linux, and