From 5701f48cf5178355b1ec51614d44aa14251250e5 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Tue, 28 Jul 2015 23:17:49 -0700 Subject: [PATCH] Clarify deflateReset() documentation. It previously could have been misinterpreted to mean that parameter changes after deflateInit2() would be reversed, which is not the case. --- zlib.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zlib.h b/zlib.h index c563014..7ec5fa8 100644 --- a/zlib.h +++ b/zlib.h @@ -656,10 +656,10 @@ ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest, ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); /* - This function is equivalent to deflateEnd followed by deflateInit, - but does not free and reallocate all the internal compression state. The - stream will keep the same compression level and any other attributes that - may have been set by deflateInit2. + This function is equivalent to deflateEnd followed by deflateInit, but + does not free and reallocate the internal compression state. The stream + will leave the compression level and any other attributes that may have been + set unchanged. deflateReset returns Z_OK if success, or Z_STREAM_ERROR if the source stream state was inconsistent (such as zalloc or state being Z_NULL).