From e1fef39aa213813c8028645d4e7a0f83d10942f5 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 14 Jun 2017 16:58:22 -0600 Subject: [PATCH] silence "may be used uninitialized" warning --- wolfssl/test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfssl/test.h b/wolfssl/test.h index a22a8af37..96e6fa2f3 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -2013,7 +2013,7 @@ static INLINE int myRsaPssSign(WOLFSSL* ssl, const byte* in, word32 inSz, byte* out, word32* outSz, int hash, int mgf, const byte* key, word32 keySz, void* ctx) { - enum wc_HashType hashType; + enum wc_HashType hashType = WC_HASH_TYPE_NONE; WC_RNG rng; int ret; word32 idx = 0; @@ -2066,7 +2066,7 @@ static INLINE int myRsaPssSign(WOLFSSL* ssl, const byte* in, word32 inSz, static INLINE int myRsaPssVerify(WOLFSSL* ssl, byte* sig, word32 sigSz, byte** out, int hash, int mgf, const byte* key, word32 keySz, void* ctx) { - enum wc_HashType hashType; + enum wc_HashType hashType = WC_HASH_TYPE_NONE; int ret; word32 idx = 0; RsaKey myKey;