From 5cb258e4f38536233f3ccff64cc449497b071760 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 19 Dec 2008 06:01:03 +0000 Subject: [PATCH] Zero out SDL_AudioCVT struct before using it, to ensure it's all initialized. --- src/audio/SDL_audiocvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 7bee10c76..ee4f1289b 100644 --- a/src/audio/SDL_audiocvt.c +++ b/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;