summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-22 15:13:20 +0100
committerMatt Caswell <matt@openssl.org>2015-10-30 08:39:47 +0000
commit006207d1bc39335b9cb474e6c9a4ca96a33bae46 (patch)
tree0a258e80b92bfc9454571bb3173d2178c4926faf
parentc9de4a20fa21101208cf311c5437d9c358ba1f07 (diff)
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 <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r--ssl/statem/statem.c2
1 files changed, 1 insertions, 1 deletions
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);