diff options
-rw-r--r-- | inflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1531,7 +1531,7 @@ int check; | |||
1531 | 1531 | ||
1532 | if (inflateStateCheck(strm)) return Z_STREAM_ERROR; | 1532 | if (inflateStateCheck(strm)) return Z_STREAM_ERROR; |
1533 | state = (struct inflate_state FAR *)strm->state; | 1533 | state = (struct inflate_state FAR *)strm->state; |
1534 | if (check) | 1534 | if (check && state->wrap) |
1535 | state->wrap |= 4; | 1535 | state->wrap |= 4; |
1536 | else | 1536 | else |
1537 | state->wrap &= ~4; | 1537 | state->wrap &= ~4; |