commit | c661c374e8df43365738daa09f4390d61bc57f08 | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Sun Mar 24 22:12:31 2013 -0700 |
committer | Mark Adler <madler@alumni.caltech.edu> | Sun Mar 24 22:15:04 2013 -0700 |
tree | 6aacaf41324478393daa5fb098a484bc0e9e0f6c | |
parent | 81c3068b9ac4e75a4c65338e5b95f421478f5295 [diff] |
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.