Fixed possibly undefined variable warnings by initializing variables to 0.

This commit is contained in:
Benjamin Kier 2019-05-30 14:49:17 -04:00 committed by Gilles Peskine
parent 37b5c831b4
commit 7edad28036
2 changed files with 2 additions and 2 deletions

View file

@ -258,7 +258,7 @@ int mbedtls_entropy_update_manual( mbedtls_entropy_context *ctx,
*/
static int entropy_gather_internal( mbedtls_entropy_context *ctx )
{
int ret, i, have_one_strong = 0;
int ret = 0, i, have_one_strong = 0;
unsigned char buf[MBEDTLS_ENTROPY_MAX_GATHER];
size_t olen;