]> git.lizzy.rs Git - zlib.git/commit
Do not return Z_BUF_ERROR if deflateParam() has nothing to write.
authorMark Adler <madler@alumni.caltech.edu>
Mon, 25 Mar 2013 05:12:31 +0000 (22:12 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Mon, 25 Mar 2013 05:15:04 +0000 (22:15 -0700)
commitc661c374e8df43365738daa09f4390d61bc57f08
tree6aacaf41324478393daa5fb098a484bc0e9e0f6c
parent81c3068b9ac4e75a4c65338e5b95f421478f5295
Do not return Z_BUF_ERROR if deflateParam() has nothing to write.

If the compressed data was already at a block boundary, then
deflateParam() would report Z_BUF_ERROR, because there was nothing
to write.  With this patch, Z_OK is returned in that case.
deflate.c