From 6e69c6201b3072acdf111f3fd268b640fde58326 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sat, 26 Jan 2013 19:19:18 -0500 Subject: Fix uninitialised memory access in pitch modulation. --- source/soundux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/soundux.cpp b/source/soundux.cpp index 1c05e77..d7d9011 100644 --- a/source/soundux.cpp +++ b/source/soundux.cpp @@ -899,7 +899,7 @@ static inline void MixStereo_ReversedLoop (int sample_count) { int pitch_mod = SoundData.pitch_mod & ~APU.DSP[APU_NON]; int32 VL[8], VR[8]; - int32 PreviousChannelSample; + int32 PreviousChannelSample = 0; for (uint32 I = 0; I < (uint32) sample_count; I += 2) { -- cgit v1.2.3