From 8cf515359c2474c9b304b99cf07bd88aa2b0f766 Mon Sep 17 00:00:00 2001 From: Jordan Cristiano Date: Fri, 21 Jun 2013 12:27:47 -0400 Subject: [PATCH] fixed uninitialzed audio_size variable in WaveFileWriter --- Source/Core/AudioCommon/Src/WaveFile.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/Core/AudioCommon/Src/WaveFile.cpp b/Source/Core/AudioCommon/Src/WaveFile.cpp index c6db942bc3..7eabbb3b48 100644 --- a/Source/Core/AudioCommon/Src/WaveFile.cpp +++ b/Source/Core/AudioCommon/Src/WaveFile.cpp @@ -8,10 +8,11 @@ enum {BUF_SIZE = 32*1024}; -WaveFileWriter::WaveFileWriter() +WaveFileWriter::WaveFileWriter(): + skip_silence(false), + audio_size(0), + conv_buffer(NULL) { - conv_buffer = 0; - skip_silence = false; } WaveFileWriter::~WaveFileWriter() @@ -39,6 +40,8 @@ bool WaveFileWriter::Start(const char *filename, unsigned int HLESampleRate) return false; } + audio_size = 0; + // ----------------- // Write file header // -----------------