[Libreoffice-commits] core.git: tools/source
Caolán McNamara
caolanm at redhat.com
Mon Sep 21 02:14:55 PDT 2015
tools/source/zcodec/zcodec.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d66d6d70591049ccf99f22d3f52e85f26dbfe433
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Sep 21 09:43:05 2015 +0100
valgrind: use of uninit data in sw_globalfilter test
Change-Id: I4d327d1e65c8ef5b9dede18ac55f1658d8e3569a
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index e0d6a88..c8a8dc2 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 )
More information about the Libreoffice-commits
mailing list