summaryrefslogtreecommitdiff
path: root/zinflate.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-11 00:03:14 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-11 00:03:14 -0400
commit60a68714dc3587e94fa5f428eff8e8789ea72ad8 (patch)
tree5f6ed9ddf57c7c49c5e3f0e3ca4e2dfe5374185b /zinflate.cpp
parent8119a038268144827a9fabb751d33d5dd22fa296 (diff)
downloadcryptopp-git-60a68714dc3587e94fa5f428eff8e8789ea72ad8.tar.gz
Fixed "Inflator: unexpected end of compressed block" (Issue 112)
Diffstat (limited to 'zinflate.cpp')
-rw-r--r--zinflate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zinflate.cpp b/zinflate.cpp
index b0117ce9..11cbbff0 100644
--- a/zinflate.cpp
+++ b/zinflate.cpp
@@ -209,7 +209,7 @@ inline unsigned int HuffmanDecoder::Decode(code_t code, /* out */ value_t &value
bool HuffmanDecoder::Decode(LowFirstBitReader &reader, value_t &value) const
{
bool result = reader.FillBuffer(m_maxCodeBits);
- if(!result) return false;
+ CRYPTOPP_UNUSED(result); // assert(result);
unsigned int codeBits = Decode(reader.PeekBuffer(), value);
if (codeBits > reader.BitsBuffered())