From 9afb343368280b76135889976b5f351c94f58823 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 18 Aug 2011 20:09:26 +0200 Subject: zlib: enforce full initialization of our data space z_stream structs --- src/mkhelp.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mkhelp.pl') 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; -- cgit v1.2.3