valgrind: use of uninit data in sw_globalfilter test

Change-Id: I4d327d1e65c8ef5b9dede18ac55f1658d8e3569a
This commit is contained in:
Caolán McNamara
2015-09-21 09:43:05 +01:00
parent 6fbab2ce87
commit d66d6d7059

View File

@@ -82,7 +82,7 @@ long ZCodec::EndCompression()
{
long retvalue = 0;
if (meState != STATE_INIT)
if (mbStatus && meState != STATE_INIT)
{
if (meState == STATE_COMPRESS)
{
@@ -106,7 +106,7 @@ long ZCodec::EndCompression()
delete[] mpInBuf;
meState = STATE_INIT;
}
return ( mbStatus ) ? retvalue : -1;
return mbStatus ? retvalue : -1;
}
long ZCodec::Compress( SvStream& rIStm, SvStream& rOStm )