Commit d7d4dc4b authored by Ryan C. Gordon's avatar Ryan C. Gordon

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
parent 61fbcbc9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment