Fix potential not initialized warning

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-11-23 13:12:51 +01:00
parent 02d2313829
commit 68a45e0aaf
No known key found for this signature in database
GPG Key ID: FEE76C0CF8C6267D

View File

@ -291,6 +291,9 @@ void mpi_mod_raw_sub( char * input_A,
size_t limbs_N;
size_t limbs_res;
mbedtls_mpi_mod_modulus m;
mbedtls_mpi_mod_modulus_init( &m );
TEST_EQUAL( mbedtls_test_read_mpi_core( &A, &limbs_A, input_A ), 0 );
TEST_EQUAL( mbedtls_test_read_mpi_core( &B, &limbs_B, input_B ), 0 );
TEST_EQUAL( mbedtls_test_read_mpi_core( &N, &limbs_N, input_N ), 0 );
@ -305,9 +308,6 @@ void mpi_mod_raw_sub( char * input_A,
ASSERT_ALLOC( X, limbs );
mbedtls_mpi_mod_modulus m;
mbedtls_mpi_mod_modulus_init( &m );
TEST_EQUAL( mbedtls_mpi_mod_modulus_setup(
&m, N, limbs,
MBEDTLS_MPI_MOD_EXT_REP_BE,