Avoid uninitialized access by gzclose_w().
This commit is contained in:
parent
51a223def4
commit
c901a34c92
@ -676,7 +676,7 @@ int ZEXPORT deflate (strm, flush)
|
||||
s = strm->state;
|
||||
|
||||
if (strm->next_out == Z_NULL ||
|
||||
(strm->next_in == Z_NULL && strm->avail_in != 0) ||
|
||||
(strm->avail_in != 0 && strm->next_in == Z_NULL) ||
|
||||
(s->status == FINISH_STATE && flush != Z_FINISH)) {
|
||||
ERR_RETURN(strm, Z_STREAM_ERROR);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user