Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Zero out SDL_AudioCVT struct before using it, to ensure it's all init…

…ialized.
  • Loading branch information
icculus committed Dec 19, 2008
1 parent 23bc418 commit 5cb258e4f38536233f3ccff64cc449497b071760
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/audio/SDL_audiocvt.c
@@ -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;

0 comments on commit 5cb258e

Please sign in to comment.