From de2ab2a4bd6fc59606341e5470ba40b0467466f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 15 Jun 2021 12:37:23 +0200 Subject: [PATCH] Fix GCC warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We know that we'll never call this function with T_size == 0, but the compiler doesn't. Signed-off-by: Manuel Pégourié-Gonnard --- library/bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/bignum.c b/library/bignum.c index d57e88eab2..30226e1e5c 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -2157,7 +2157,7 @@ static size_t mbedtls_mpi_cf_bool_eq( size_t x, size_t y ) */ static int mpi_select( mbedtls_mpi *R, const mbedtls_mpi *T, size_t T_size, size_t idx ) { - int ret; + int ret = MBEDTLS_ERR_MPI_BAD_INPUT_DATA; for( size_t i = 0; i < T_size; i++ ) {