diff options
Diffstat (limited to 'deflate.c')
-rw-r--r-- | deflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -676,7 +676,7 @@ int ZEXPORT deflate (strm, flush) | |||
676 | s = strm->state; | 676 | s = strm->state; |
677 | 677 | ||
678 | if (strm->next_out == Z_NULL || | 678 | if (strm->next_out == Z_NULL || |
679 | (strm->next_in == Z_NULL && strm->avail_in != 0) || | 679 | (strm->avail_in != 0 && strm->next_in == Z_NULL) || |
680 | (s->status == FINISH_STATE && flush != Z_FINISH)) { | 680 | (s->status == FINISH_STATE && flush != Z_FINISH)) { |
681 | ERR_RETURN(strm, Z_STREAM_ERROR); | 681 | ERR_RETURN(strm, Z_STREAM_ERROR); |
682 | } | 682 | } |