initialise |n| parameter in bn_test.cc to avoid compiler warning. crypto/bn/bn_test.cc:404:44: error: ānā may be used uninitialized in this function [-Werror=maybe-uninitialized] Change-Id: Id590dfee4b9ae1a4fbd0965e133310dac0d06ed3
diff --git a/crypto/bn/bn_test.cc b/crypto/bn/bn_test.cc index 8c41e48..67f6505 100644 --- a/crypto/bn/bn_test.cc +++ b/crypto/bn/bn_test.cc
@@ -392,7 +392,7 @@ static bool TestLShift(FileTest *t, BN_CTX *ctx) { ScopedBIGNUM a = GetBIGNUM(t, "A"); ScopedBIGNUM lshift = GetBIGNUM(t, "LShift"); - int n; + int n = 0; if (!a || !lshift || !GetInt(t, &n, "N")) { return false; } @@ -412,7 +412,7 @@ static bool TestRShift(FileTest *t, BN_CTX *ctx) { ScopedBIGNUM a = GetBIGNUM(t, "A"); ScopedBIGNUM rshift = GetBIGNUM(t, "RShift"); - int n; + int n = 0; if (!a || !rshift || !GetInt(t, &n, "N")) { return false; }