From: Mark Adler Date: Wed, 31 Jan 2018 21:24:12 +0000 (-0800) Subject: Correct the initialization requirements for deflateInit2(). X-Git-Tag: 1.9.9-b1~588 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aebdb5c7023de0b9ac7c19301216616997f961a;p=thirdparty%2Fzlib-ng.git Correct the initialization requirements for deflateInit2(). --- diff --git a/zlib-ng.h b/zlib-ng.h index 7f1ce991e..ce47d56f5 100644 --- a/zlib-ng.h +++ b/zlib-ng.h @@ -530,8 +530,7 @@ ZEXTERN int ZEXPORT zng_deflateInit2 (zng_stream *strm, int strategy); This is another version of deflateInit with more compression options. The - fields next_in, zalloc, zfree and opaque must be initialized before by the - caller. + fields zalloc, zfree and opaque must be initialized before by the caller. The method parameter is the compression method. It must be Z_DEFLATED in this version of the library. diff --git a/zlib.h b/zlib.h index c7b7bf67a..e48e927ca 100644 --- a/zlib.h +++ b/zlib.h @@ -541,8 +541,7 @@ ZEXTERN int ZEXPORT deflateInit2 (z_stream *strm, int strategy); This is another version of deflateInit with more compression options. The - fields next_in, zalloc, zfree and opaque must be initialized before by the - caller. + fields zalloc, zfree and opaque must be initialized before by the caller. The method parameter is the compression method. It must be Z_DEFLATED in this version of the library.