Zero out SDL_AudioCVT struct before using it, to ensure it's all initialized.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403340
This commit is contained in:
Ryan C. Gordon 2008-12-19 06:01:03 +00:00
parent 61fbcbc956
commit d7d4dc4b7e

View file

@ -1836,7 +1836,7 @@ SDL_BuildAudioCVT(SDL_AudioCVT * cvt,
#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;