diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-01-05 22:54:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-01-05 22:54:45 +0000 |
commit | 292ef5fabbe0b2031906ed36ac64c83dfb2b4dbc (patch) | |
tree | fd4d760678c498cfc6eeafe0a92d8f735afec3d5 | |
parent | 2b277f85f585da8f7dbb494d815138aef3bf075f (diff) |
Dan Fandrich's zlib fix
-rw-r--r-- | lib/content_encoding.c | 4 | ||||
-rw-r--r-- | src/mkhelp.pl | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c index 92152cdf7..47cc78166 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -82,6 +82,8 @@ Curl_unencode_deflate_write(struct SessionHandle *data, z->zalloc = (alloc_func)Z_NULL; z->zfree = (free_func)Z_NULL; z->opaque = 0; /* of dubious use 08/27/02 jhrg */ + z->next_in = NULL; + z->avail_in = 0; if (inflateInit(z) != Z_OK) return process_zlib_error(data, z); k->zlib_init = 1; @@ -224,6 +226,8 @@ Curl_unencode_gzip_write(struct SessionHandle *data, z->zalloc = (alloc_func)Z_NULL; z->zfree = (free_func)Z_NULL; z->opaque = 0; /* of dubious use 08/27/02 jhrg */ + z->next_in = NULL; + z->avail_in = 0; if (inflateInit2(z, -MAX_WBITS) != Z_OK) return process_zlib_error(data, z); k->zlib_init = 1; /* Initial call state */ diff --git a/src/mkhelp.pl b/src/mkhelp.pl index 2e1e6985a..1c0a867da 100644 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -158,6 +158,8 @@ void hugehelp(void) z.zalloc = (alloc_func)Z_NULL; z.zfree = (free_func)Z_NULL; z.opaque = 0; + z.next_in = NULL; + z.avail_in = 0; if (inflateInit2(&z, -MAX_WBITS) != Z_OK) return; |