summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2020-04-15 19:06:38 (GMT)
committersebres <sebres@users.sourceforge.net>2020-04-15 19:06:38 (GMT)
commit6422781fdc73ec84db06ad3611a4a1676b4cb2eb (patch)
tree356573f54e9979c9fa400323d8280fc37cad6758 /generic/tclZlib.c
parent951e89371632e61ed06ddd97b090f4e3b7c36851 (diff)
downloadtcl-6422781fdc73ec84db06ad3611a4a1676b4cb2eb.zip
tcl-6422781fdc73ec84db06ad3611a4a1676b4cb2eb.tar.gz
tcl-6422781fdc73ec84db06ad3611a4a1676b4cb2eb.tar.bz2
fixes bug [8af92dfb66]: resolve too earlier stop of inflate's cycle (if generating decompressed data on flush case of full buffer)
Diffstat (limited to 'generic/tclZlib.c')
-rw-r--r--generic/tclZlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index aed38c3..002c6ae 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -3832,7 +3832,7 @@ ResultGenerate(
if (((flush == Z_SYNC_FLUSH) && (e == Z_BUF_ERROR))
|| (e == Z_STREAM_END)
- || (e == Z_OK && cd->inStream.avail_out == 0)) {
+ || (e == Z_OK && written == 0)) {
return TCL_OK;
}