From acb2a69b72837ca0cb645923e27255db87fd0f81 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 19 May 2016 12:44:06 -0600 Subject: [PATCH] iolog: memset() zstream at init time Signed-off-by: Jens Axboe --- iolog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iolog.c b/iolog.c index 53dad396..75958f2e 100644 --- a/iolog.c +++ b/iolog.c @@ -710,6 +710,7 @@ static int z_stream_init(z_stream *stream, int gz_hdr) { int wbits = 15; + memset(stream, 0, sizeof(*stream)); stream->zalloc = Z_NULL; stream->zfree = Z_NULL; stream->opaque = Z_NULL; -- 2.25.1