Correct the initialization requirements for deflateInit2().

This commit is contained in:
Mark Adler 2018-01-31 13:24:12 -08:00
parent bf88202e31
commit e99813dbfe
1 changed files with 1 additions and 2 deletions

3
zlib.h
View File

@ -543,8 +543,7 @@ ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp 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.