Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Zero out SDL_AudioCVT struct before using it, to ensure it's all init…
Browse files Browse the repository at this point in the history
…ialized.
  • Loading branch information
icculus committed Dec 19, 2008
1 parent 23bc418 commit 5cb258e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audiocvt.c
Expand Up @@ -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;
Expand Down

0 comments on commit 5cb258e

Please sign in to comment.