commit | 7edad280360df0c85d0d38c0d31074111c26e8fc | [log] [tgz] |
---|---|---|
author | Benjamin Kier <benjamin.kier@legrand.us> | Thu May 30 14:49:17 2019 -0400 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Mon Sep 30 17:24:08 2019 +0200 |
tree | a3b0c194d67a24552d09c2fc37e50bc8d4da9b07 | |
parent | 37b5c831b41cd41456caa979f1444234c51e4c51 [diff] [blame] |
Fixed possibly undefined variable warnings by initializing variables to 0.
diff --git a/library/hmac_drbg.c b/library/hmac_drbg.c index 50d88bd..edecc6e 100644 --- a/library/hmac_drbg.c +++ b/library/hmac_drbg.c
@@ -74,7 +74,7 @@ unsigned char rounds = ( additional != NULL && add_len != 0 ) ? 2 : 1; unsigned char sep[1]; unsigned char K[MBEDTLS_MD_MAX_SIZE]; - int ret; + int ret = 0; for( sep[0] = 0; sep[0] < rounds; sep[0]++ ) {