From: Nathan Moinvaziri Date: Sun, 15 Sep 2019 22:34:12 +0000 (-0700) Subject: Fixed use of uninitialized value warning in crc_folding.c #394 X-Git-Tag: 1.9.9-b1~432 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78406af8241471e7ff5e1ce9eb4d94cea596e863;p=thirdparty%2Fzlib-ng.git Fixed use of uninitialized value warning in crc_folding.c #394 --- diff --git a/arch/x86/crc_folding.c b/arch/x86/crc_folding.c index 305ef8d1..3b358f5f 100644 --- a/arch/x86/crc_folding.c +++ b/arch/x86/crc_folding.c @@ -259,6 +259,8 @@ ZLIB_INTERNAL void crc_fold_copy(deflate_state *const s, unsigned char *dst, con len -= algn_diff; partial_fold(algn_diff, &xmm_crc0, &xmm_crc1, &xmm_crc2, &xmm_crc3, &xmm_crc_part); + } else { + xmm_crc_part = _mm_setzero_si128(); } while ((len -= 64) >= 0) {