# HG changeset patch # User Ryan C. Gordon # Date 1229666463 0 # Node ID 10c319ce07fb7a57b1ea237c456796254f9a25ab # Parent e2b1abe046411bfd91ce3f2609e4a4ca86d8e2f6 Zero out SDL_AudioCVT struct before using it, to ensure it's all initialized. diff -r e2b1abe04641 -r 10c319ce07fb src/audio/SDL_audiocvt.c --- a/src/audio/SDL_audiocvt.c Fri Dec 19 04:42:18 2008 +0000 +++ b/src/audio/SDL_audiocvt.c Fri Dec 19 06:01:03 2008 +0000 @@ -1836,7 +1836,7 @@ #endif /* Start off with no conversion necessary */ - + SDL_memset(cvt, '\0', sizeof (SDL_AudioCVT)); cvt->src_format = src_fmt; cvt->dst_format = dst_fmt; cvt->needed = 0;