From 90ad5336fc9a20a95cfe04be5547264ab9d1af4e Mon Sep 17 00:00:00 2001 From: Nickolas Lapp Date: Wed, 12 Aug 2015 14:22:23 -0600 Subject: [PATCH] Fix uninitialized warning --- src/tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls.c b/src/tls.c index 8c8e14181..83d962529 100644 --- a/src/tls.c +++ b/src/tls.c @@ -1040,7 +1040,7 @@ static int TLSX_SNI_Parse(WOLFSSL* ssl, byte* input, word16 length, return BUFFER_ERROR; for (size = 0; offset < length; offset += size) { - SNI *sni; + SNI *sni = NULL; byte type = input[offset++]; if (offset + OPAQUE16_LEN > length)