diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-05-04 18:51:12 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-05-04 18:52:22 (GMT) |
commit | a18612429db86c23a40e5f96ce1de5425573779c (patch) | |
tree | 6f85f091537b91c6674981b3735844994e8b93b0 /Utilities/cmzlib | |
parent | e2c496e2af8e0f2bc0aaa62e91810482234a2157 (diff) | |
download | CMake-a18612429db86c23a40e5f96ce1de5425573779c.zip CMake-a18612429db86c23a40e5f96ce1de5425573779c.tar.gz CMake-a18612429db86c23a40e5f96ce1de5425573779c.tar.bz2 |
Fixes for bug # 10543, build on older sunpro now works.
Diffstat (limited to 'Utilities/cmzlib')
-rw-r--r-- | Utilities/cmzlib/deflate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/cmzlib/deflate.c b/Utilities/cmzlib/deflate.c index a5e7a35..5ec8374 100644 --- a/Utilities/cmzlib/deflate.c +++ b/Utilities/cmzlib/deflate.c @@ -286,10 +286,10 @@ int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, s->window = (Bytef *) ZALLOC(strm, s->w_size, 2*sizeof(Byte)); - // The following memset eliminates the valgrind uninitialized warning - // "swept under the carpet" here: - // http://www.zlib.net/zlib_faq.html#faq36 - // + /* The following memset eliminates the valgrind uninitialized warning + "swept under the carpet" here: + http://www.zlib.net/zlib_faq.html#faq36 */ + memset(s->window, 0, s->w_size*2*sizeof(Byte)); s->prev = (Posf *) ZALLOC(strm, s->w_size, sizeof(Pos)); |