From d7edb1d22569dd7b92593983a158f3876883873e Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 10 Oct 2022 14:32:09 +0200 Subject: [PATCH] Initialize variable Signed-off-by: Gabor Mezei --- library/constant_time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/constant_time.c b/library/constant_time.c index d01998bd7..2b62bc176 100644 --- a/library/constant_time.c +++ b/library/constant_time.c @@ -708,7 +708,8 @@ int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char swap ) { - int ret, s; + int ret = 0; + int s; MPI_VALIDATE_RET( X != NULL ); MPI_VALIDATE_RET( Y != NULL );