Fix warning.
authorBen Laurie <ben@openssl.org>
Sat, 23 Jun 2007 18:47:51 +0000 (18:47 +0000)
committerBen Laurie <ben@openssl.org>
Sat, 23 Jun 2007 18:47:51 +0000 (18:47 +0000)
crypto/mem_clr.c

index 00dfcff..add1f78 100644 (file)
@@ -70,7 +70,8 @@ void OPENSSL_cleanse(void *ptr, size_t len)
                *(p++) = (unsigned char)ctr;
                ctr += (17 + ((size_t)p & 0xF));
                }
-       if(p=memchr(ptr, (unsigned char)ctr, len))
+       p=memchr(ptr, (unsigned char)ctr, len);
+       if(p)
                ctr += (63 + (size_t)p);
        cleanse_ctr = (unsigned char)ctr;
        }