Cleared -Wmaybe-uninitialized under GCC 5.1
parent
e874cd2ef8
commit
d04b813e8b
4
asn.cpp
4
asn.cpp
|
|
@ -74,7 +74,9 @@ bool BERLengthDecode(BufferedTransformation &bt, lword &length, bool &definiteLe
|
|||
|
||||
bool BERLengthDecode(BufferedTransformation &bt, size_t &length)
|
||||
{
|
||||
lword lw;
|
||||
// Initialize to silence warning from diagnostic tools
|
||||
lword lw = 0;
|
||||
|
||||
bool definiteLength;
|
||||
if (!BERLengthDecode(bt, lw, definiteLength))
|
||||
BERDecodeError();
|
||||
|
|
|
|||
|
|
@ -402,7 +402,7 @@ void Inflator::DecodeHeader()
|
|||
HuffmanDecoder codeLengthDecoder(codeLengths, 19);
|
||||
for (i = 0; i < hlit+257+hdist+1; )
|
||||
{
|
||||
unsigned int k, count, repeater;
|
||||
unsigned int k=0, count=0, repeater=0;
|
||||
bool result = codeLengthDecoder.Decode(m_reader, k);
|
||||
if (!result)
|
||||
throw UnexpectedEndErr();
|
||||
|
|
|
|||
Loading…
Reference in New Issue