From 006207d1bc39335b9cb474e6c9a4ca96a33bae46 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 22 Oct 2015 15:13:20 +0100 Subject: [PATCH] Fix a bogus clang warning Clang with --strict-warnings was complaining about an uninitalised variable. In reality it will never be used uninitialised but clang can't figure out the logic, so just init it anyway to silence the warning. Reviewed-by: Tim Hudson Reviewed-by: Richard Levitte --- ssl/statem/statem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/statem/statem.c b/ssl/statem/statem.c index 76e902c993..b9e6fc0fa4 100644 --- a/ssl/statem/statem.c +++ b/ssl/statem/statem.c @@ -522,7 +522,7 @@ static void init_read_state_machine(SSL *s) static SUB_STATE_RETURN read_state_machine(SSL *s) { OSSL_STATEM *st = &s->statem; int ret, mt; - unsigned long len; + unsigned long len = 0; int (*transition)(SSL *s, int mt); PACKET pkt; enum MSG_PROCESS_RETURN (*process_message)(SSL *s, PACKET *pkt); -- 2.25.1