From d42e4b2b8fcb02bcb0a621748dd5c4096323a731 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 27 Jun 2016 15:57:57 -0700 Subject: [PATCH] initialise |n| parameter in bn_test.cc to avoid compiler warning. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit crypto/bn/bn_test.cc:404:44: error: ā€˜nā€™ may be used uninitialized in this function [-Werror=maybe-uninitialized] Change-Id: Id590dfee4b9ae1a4fbd0965e133310dac0d06ed3 --- crypto/bn/bn_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/bn/bn_test.cc b/crypto/bn/bn_test.cc index 8c41e48e..67f65050 100644 --- a/crypto/bn/bn_test.cc +++ b/crypto/bn/bn_test.cc @@ -392,7 +392,7 @@ static bool TestLShift1(FileTest *t, BN_CTX *ctx) { 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 TestLShift(FileTest *t, BN_CTX *ctx) { 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; }