Skip to content

Commit

Permalink
Add initialization for structures
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
  • Loading branch information
gabor-mezei-arm committed Sep 28, 2022
1 parent 58a7a06 commit 92ca1bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/suites/test_suite_ecp.function
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ void ecp_invalid_param( )
mbedtls_ecp_restart_ctx restart_ctx;
#endif /* MBEDTLS_ECP_RESTARTABLE */

mbedtls_ecp_group_init( &grp );
mbedtls_ecp_point_init( &P );

TEST_INVALID_PARAM( mbedtls_ecp_point_init( NULL ) );
TEST_INVALID_PARAM( mbedtls_ecp_keypair_init( NULL ) );
TEST_INVALID_PARAM( mbedtls_ecp_group_init( NULL ) );
Expand Down

0 comments on commit 92ca1bc

Please sign in to comment.