summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2012-05-03 15:28:54 +0000
committer smf- <smf-@users.noreply.github.com>2012-05-03 15:28:54 +0000
commit6686c410f3bd5c6f204d4b8e75d304a7f5c4c3b3 (patch)
tree99391f33843f64f3a30a93cffabf16bb2d7afc8d /src
parent36ea482ace334a56d23a82c8394d7206fcf10134 (diff)
Fixed "potentially uninitalized local variable" error when building with msvc, The code does appear to assume that variables on the stack are zero'd.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libflac/libflac/stream_decoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/libflac/libflac/stream_decoder.c b/src/lib/libflac/libflac/stream_decoder.c
index d5040c58121..e2dc94d815a 100644
--- a/src/lib/libflac/libflac/stream_decoder.c
+++ b/src/lib/libflac/libflac/stream_decoder.c
@@ -1464,6 +1464,7 @@ FLAC__bool read_metadata_(FLAC__StreamDecoder *decoder)
block.is_last = is_last;
block.type = (FLAC__MetadataType)type;
block.length = length;
+ memset(&block.data, 0, sizeof(block.data));
if(type == FLAC__METADATA_TYPE_APPLICATION) {
if(!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, block.data.application.id, FLAC__STREAM_METADATA_APPLICATION_ID_LEN/8))