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)
|
bool BERLengthDecode(BufferedTransformation &bt, size_t &length)
|
||||||
{
|
{
|
||||||
lword lw;
|
// Initialize to silence warning from diagnostic tools
|
||||||
|
lword lw = 0;
|
||||||
|
|
||||||
bool definiteLength;
|
bool definiteLength;
|
||||||
if (!BERLengthDecode(bt, lw, definiteLength))
|
if (!BERLengthDecode(bt, lw, definiteLength))
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
|
||||||
|
|
@ -402,7 +402,7 @@ void Inflator::DecodeHeader()
|
||||||
HuffmanDecoder codeLengthDecoder(codeLengths, 19);
|
HuffmanDecoder codeLengthDecoder(codeLengths, 19);
|
||||||
for (i = 0; i < hlit+257+hdist+1; )
|
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);
|
bool result = codeLengthDecoder.Decode(m_reader, k);
|
||||||
if (!result)
|
if (!result)
|
||||||
throw UnexpectedEndErr();
|
throw UnexpectedEndErr();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue