Commit e86353fd authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Make sure to initialize the whole z_stream struct (valgrind).

parent aeb78cba
...@@ -257,17 +257,9 @@ static void init_gzip_stream(http_request_t *req) ...@@ -257,17 +257,9 @@ static void init_gzip_stream(http_request_t *req)
gzip_stream_t *gzip_stream; gzip_stream_t *gzip_stream;
int index, zres; 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.zalloc = wininet_zalloc;
gzip_stream->zstream.zfree = wininet_zfree; 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); zres = inflateInit2(&gzip_stream->zstream, 0x1f);
if(zres != Z_OK) { if(zres != Z_OK) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment