From: taigacon Date: Tue, 23 Jul 2019 18:20:17 +0000 (+0800) Subject: Fix wrong chunkmemset_6 implementation X-Git-Tag: 1.9.9-b1~461 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=843e7bef67cfe33fde8422c0d9f5be0646f773f9;p=thirdparty%2Fzlib-ng.git Fix wrong chunkmemset_6 implementation --- diff --git a/memcopy.h b/memcopy.h index 4e870a0a9..0f5928ea3 100644 --- a/memcopy.h +++ b/memcopy.h @@ -223,7 +223,7 @@ static inline unsigned char *chunkmemset_6(unsigned char *out, unsigned char *fr len -= sz; } - if (rem) + if (!rem) return out; /* Last, deal with the case when LEN is not a multiple of SZ. */