Previous 15994 Revisions Next

r15085 Thursday 3rd May, 2012 at 15:33:23 UTC by smf
Fixed "potentially uninitalized local variable" error when building with msvc, The code does appear to assume that variables on the stack are zero'd.
[src/lib/libflac/libflac]stream_decoder.c

src/lib/libflac/libflac/stream_decoder.c
r15084r15085
14641464      block.is_last = is_last;
14651465      block.type = (FLAC__MetadataType)type;
14661466      block.length = length;
1467      memset(&block.data, 0, sizeof(block.data));
14671468
14681469      if(type == FLAC__METADATA_TYPE_APPLICATION) {
14691470         if(!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, block.data.application.id, FLAC__STREAM_METADATA_APPLICATION_ID_LEN/8))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team