]> git.codecow.com Git - Monocypher.git/commitdiff
c++ conformity
authorLoup Vaillant <loup@loup-vaillant.fr>
Tue, 21 Feb 2017 00:03:58 +0000 (01:03 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 21 Feb 2017 00:03:58 +0000 (01:03 +0100)
monocypher.c

index 65313d62bf14b35e1f42ab1dd05a53ad2899d4bb..be7972314afc5b09be5ee16fc24830db722b7afe 100644 (file)
@@ -938,7 +938,7 @@ static int fe_isnegative(const fe f)
 
 static int fe_isnonzero(const fe f)
 {
-    static const u8 zero[32];
+    static const u8 zero[32] = {0};
     u8 s[32];
     fe_tobytes(s, f);
     return crypto_memcmp(s, zero, 32);