Avoid compiler warning about possible use of uninitialized values
This commit is contained in:
parent
0f99c2d712
commit
b0c4cb4701
@ -142,6 +142,7 @@ uint64 ReadCodedSizeValue(const binary * InBuffer, uint32 & BufferSize, uint64 &
|
|||||||
uint64 Result = 0x7F;
|
uint64 Result = 0x7F;
|
||||||
unsigned int SizeIdx, PossibleSizeLength = 0;
|
unsigned int SizeIdx, PossibleSizeLength = 0;
|
||||||
binary PossibleSize[8];
|
binary PossibleSize[8];
|
||||||
|
memset(PossibleSize, 0, 8);
|
||||||
|
|
||||||
SizeUnknown = 0x7F; // the last bit is discarded when computing the size
|
SizeUnknown = 0x7F; // the last bit is discarded when computing the size
|
||||||
for (SizeIdx = 0; SizeIdx < BufferSize && SizeIdx < 8; SizeIdx++) {
|
for (SizeIdx = 0; SizeIdx < BufferSize && SizeIdx < 8; SizeIdx++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user