From 77fa0ccb828feb81075c6a2a3ac1f0a14d0592d3 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Tue, 10 May 2022 15:10:23 -0500 Subject: [PATCH] src/tls.c:BuildTlsFinished(): work around false positive -Wmaybe-uninitialized. --- src/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls.c b/src/tls.c index 209bc5d67..d9b08cbd9 100644 --- a/src/tls.c +++ b/src/tls.c @@ -168,7 +168,7 @@ int BuildTlsHandshakeHash(WOLFSSL* ssl, byte* hash, word32* hashLen) int BuildTlsFinished(WOLFSSL* ssl, Hashes* hashes, const byte* sender) { int ret; - const byte* side; + const byte* side = NULL; word32 hashSz = HSHASH_SZ; #if defined(WOLFSSL_ASYNC_CRYPT) && !defined(WC_ASYNC_NO_HASH) WC_DECLARE_VAR(handshake_hash, byte, HSHASH_SZ, ssl->heap);