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:
parent
61fbcbc956
commit
d7d4dc4b7e
1 changed files with 1 additions and 1 deletions
|
@ -1836,7 +1836,7 @@ SDL_BuildAudioCVT(SDL_AudioCVT * cvt,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Start off with no conversion necessary */
|
/* Start off with no conversion necessary */
|
||||||
|
SDL_memset(cvt, '\0', sizeof (SDL_AudioCVT));
|
||||||
cvt->src_format = src_fmt;
|
cvt->src_format = src_fmt;
|
||||||
cvt->dst_format = dst_fmt;
|
cvt->dst_format = dst_fmt;
|
||||||
cvt->needed = 0;
|
cvt->needed = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue