diff options
author | Yang Tse <yangsita@gmail.com> | 2011-08-18 20:09:26 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-08-18 20:10:51 +0200 |
commit | 9afb343368280b76135889976b5f351c94f58823 (patch) | |
tree | 4ff21f2b3eac959d29fe888cf7a1d8174a5cd7ed /src | |
parent | 18339846644fff08817498895e27d0177c80ed5b (diff) |
zlib: enforce full initialization of our data space z_stream structs
Diffstat (limited to 'src')
-rw-r--r-- | src/mkhelp.pl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mkhelp.pl b/src/mkhelp.pl index 1d1be601e..e9de8429d 100644 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -177,11 +177,9 @@ void hugehelp(void) return; headerlen = 10; + memset(&z, 0, sizeof(z_stream)); z.avail_in = (unsigned int)(sizeof(hugehelpgz) - headerlen); z.next_in = (unsigned char *)hugehelpgz + headerlen; - z.zalloc = (alloc_func)Z_NULL; - z.zfree = (free_func)Z_NULL; - z.opaque = 0; if (inflateInit2(&z, -MAX_WBITS) != Z_OK) return; |