diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-21 09:43:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-21 10:12:18 +0100 |
commit | d66d6d70591049ccf99f22d3f52e85f26dbfe433 (patch) | |
tree | f2fc61f880578ca4b1bc8372240b1ca8c4939da8 /tools | |
parent | 6fbab2ce87372bd98275d8239cd782d0ca6375e8 (diff) |
valgrind: use of uninit data in sw_globalfilter test
Change-Id: I4d327d1e65c8ef5b9dede18ac55f1658d8e3569a
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/zcodec/zcodec.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx index e0d6a88716b0..c8a8dc25f8a0 100644 --- a/tools/source/zcodec/zcodec.cxx +++ b/tools/source/zcodec/zcodec.cxx @@ -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 ) |