Skip to content

Commit

Permalink
Fix maybe-uninitialized warnings resulting in build failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
prasad-alatkar authored and mahavirj committed Mar 9, 2020
1 parent b764781 commit 9ef92c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/ecp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ static int ecp_mul_comb_core( const mbedtls_ecp_group *grp, mbedtls_ecp_point *R
void *p_rng,
mbedtls_ecp_restart_ctx *rs_ctx )
{
int ret;
int ret = 0;
mbedtls_ecp_point Txi;
size_t i;

Expand Down
2 changes: 1 addition & 1 deletion library/ssl_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -5640,7 +5640,7 @@ static int ssl_parse_certificate_chain( mbedtls_ssl_context *ssl )

int mbedtls_ssl_parse_certificate( mbedtls_ssl_context *ssl )
{
int ret;
int ret = 0;
const mbedtls_ssl_ciphersuite_t * const ciphersuite_info =
ssl->transform_negotiate->ciphersuite_info;
#if defined(MBEDTLS_SSL_SRV_C) && defined(MBEDTLS_SSL_SERVER_NAME_INDICATION)
Expand Down

0 comments on commit 9ef92c5

Please sign in to comment.