]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix wrong chunkmemset_6 implementation
authortaigacon <taigacon@gmail.com>
Tue, 23 Jul 2019 18:20:17 +0000 (02:20 +0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 6 Aug 2019 08:48:07 +0000 (10:48 +0200)
memcopy.h

index 4e870a0a9af356ff80242ba3bc8dad761590d3a4..0f5928ea3d1647901e2dc10c026934ea26db0543 100644 (file)
--- 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. */