From b0c4cb4701bf6d955a7176e9c0d8ceae6ef2554d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 19 Oct 2013 12:25:30 +0200 Subject: [PATCH] Avoid compiler warning about possible use of uninitialized values --- src/EbmlElement.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EbmlElement.cpp b/src/EbmlElement.cpp index c503088..ffc0fde 100644 --- a/src/EbmlElement.cpp +++ b/src/EbmlElement.cpp @@ -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++) {