aboutsummaryrefslogtreecommitdiff
path: root/src/mkhelp.pl
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-08-18 20:09:26 +0200
committerYang Tse <yangsita@gmail.com>2011-08-18 20:10:51 +0200
commit9afb343368280b76135889976b5f351c94f58823 (patch)
tree4ff21f2b3eac959d29fe888cf7a1d8174a5cd7ed /src/mkhelp.pl
parent18339846644fff08817498895e27d0177c80ed5b (diff)
zlib: enforce full initialization of our data space z_stream structs
Diffstat (limited to 'src/mkhelp.pl')
-rw-r--r--src/mkhelp.pl4
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;