X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d966ee254a2cc44158bb070c6df0a61a808cbc44..12384c3aff4fb433042cf8fc4f4949d744535531:/lib/zlib.c diff --git a/lib/zlib.c b/lib/zlib.c index c9f7ff5b..9d732bb7 100644 --- a/lib/zlib.c +++ b/lib/zlib.c @@ -600,6 +600,7 @@ int deflateInit2 (strm, level, method, windowBits, memLevel, strategy) } s = (deflate_state *) ZALLOC(strm, 1, sizeof(deflate_state)); if (s == Z_NULL) return Z_MEM_ERROR; + bzero(s, sizeof(*s)); strm->state = (struct internal_state FAR *)s; s->strm = strm;