summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-16 18:18:02 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-16 18:18:02 +0000
commit12384c3aff4fb433042cf8fc4f4949d744535531 (patch)
tree402a1b064615a3c3ff8387654178fe9a54f3f8fe /lib
parentd966ee254a2cc44158bb070c6df0a61a808cbc44 (diff)
downloadrsync-12384c3aff4fb433042cf8fc4f4949d744535531.tar.gz
Checker showed that zlib was using a element of its internal state
structure without initialising it. Although it looks harmless I've added a bzero() to make absolutely sure that the code behaves consistently across platforms.
Diffstat (limited to 'lib')
-rw-r--r--lib/zlib.c1
1 files changed, 1 insertions, 0 deletions
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;