Avoid compiler warning about possible use of uninitialized values

This commit is contained in:
Moritz Bunkus 2013-10-19 12:25:30 +02:00
parent 0f99c2d712
commit b0c4cb4701

View File

@ -142,6 +142,7 @@ uint64 ReadCodedSizeValue(const binary * InBuffer, uint32 & BufferSize, uint64 &
uint64 Result = 0x7F;
unsigned int SizeIdx, PossibleSizeLength = 0;
binary PossibleSize[8];
memset(PossibleSize, 0, 8);
SizeUnknown = 0x7F; // the last bit is discarded when computing the size
for (SizeIdx = 0; SizeIdx < BufferSize && SizeIdx < 8; SizeIdx++) {