]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-compression: ostreams - Add asserts to clarify how buffer flushing works
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 28 Aug 2020 14:13:32 +0000 (17:13 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 31 Aug 2020 09:38:40 +0000 (09:38 +0000)
commit154109921da276492f31fc055d7cbbb92b5f3903
treea2f9daec5f5a2c99045b7db1cd69b93fcd8f0320
parent1e3f43e1242dab994b61f21f9e2c9b6a394e2095
lib-compression: ostreams - Add asserts to clarify how buffer flushing works

If the output buffer isn't fully sent, the flush function returns 0 early
on, before setting flushed=TRUE.
src/lib-compression/ostream-bzlib.c
src/lib-compression/ostream-lzma.c
src/lib-compression/ostream-zlib.c
src/lib-compression/ostream-zstd.c