summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inflate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/inflate.c b/inflate.c
index df4c56a168..0cbed041d7 100644
--- a/inflate.c
+++ b/inflate.c
@@ -190,6 +190,8 @@ int32_t Z_EXPORT PREFIX(inflatePrime)(PREFIX3(stream) *strm, int32_t bits, int32
if (inflateStateCheck(strm))
return Z_STREAM_ERROR;
+ if (bits == 0)
+ return Z_OK;
INFLATE_PRIME_HOOK(strm, bits, value); /* hook for IBM Z DFLTCC */
state = (struct inflate_state *)strm->state;
if (bits < 0) {