Message ID | 1332690817-31759-5-git-send-email-adrian.wenl@gmail.com |
---|---|
State | Superseded |
Delegated to: | Marek Vasut |
Headers | show |
diff --git a/lib/zlib/deflate.c b/lib/zlib/deflate.c index 5c4022f..3f7de14 100644 --- a/lib/zlib/deflate.c +++ b/lib/zlib/deflate.c @@ -592,11 +592,8 @@ int ZEXPORT deflate (strm, flush) } s = strm->state; - if (strm->next_out == Z_NULL || - (strm->next_in == Z_NULL && strm->avail_in != 0) || - (s->status == FINISH_STATE && flush != Z_FINISH)) { + if (s->status == FINISH_STATE && flush != Z_FINISH) ERR_RETURN(strm, Z_STREAM_ERROR); - } if (strm->avail_out == 0) ERR_RETURN(strm, Z_BUF_ERROR); s->strm = strm; /* just in case */