From e86353fd30dcb0e02ba538c7f6a162480afc5fe0 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 12 Jan 2011 15:31:55 +0100 Subject: [PATCH] wininet: Make sure to initialize the whole z_stream struct (valgrind). --- dlls/wininet/http.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 9a49a941309..c656b217a5b 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -257,17 +257,9 @@ static void init_gzip_stream(http_request_t *req) gzip_stream_t *gzip_stream; int index, zres; - gzip_stream = HeapAlloc(GetProcessHeap(), 0, sizeof(gzip_stream_t)); + gzip_stream = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(gzip_stream_t)); gzip_stream->zstream.zalloc = wininet_zalloc; gzip_stream->zstream.zfree = wininet_zfree; - gzip_stream->zstream.opaque = NULL; - gzip_stream->zstream.next_in = NULL; - gzip_stream->zstream.avail_in = 0; - gzip_stream->zstream.next_out = NULL; - gzip_stream->zstream.avail_out = 0; - gzip_stream->buf_pos = 0; - gzip_stream->buf_size = 0; - gzip_stream->end_of_data = FALSE; zres = inflateInit2(&gzip_stream->zstream, 0x1f); if(zres != Z_OK) {