From d66d6d70591049ccf99f22d3f52e85f26dbfe433 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 21 Sep 2015 09:43:05 +0100 Subject: valgrind: use of uninit data in sw_globalfilter test Change-Id: I4d327d1e65c8ef5b9dede18ac55f1658d8e3569a --- tools/source/zcodec/zcodec.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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 ) -- cgit