diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-12-16 18:18:02 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-12-16 18:18:02 +0000 |
commit | 12384c3aff4fb433042cf8fc4f4949d744535531 (patch) | |
tree | 402a1b064615a3c3ff8387654178fe9a54f3f8fe /lib | |
parent | d966ee254a2cc44158bb070c6df0a61a808cbc44 (diff) | |
download | rsync-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |