From 03d03a421241e817f660b11a67b002972cf0104b Mon Sep 17 00:00:00 2001 From: Dmitri Tikhonov Date: Tue, 5 Mar 2019 17:08:37 -0500 Subject: [PATCH] Add useless variable initialization for Windows --- src/liblsquic/lsquic_handshake.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/liblsquic/lsquic_handshake.c b/src/liblsquic/lsquic_handshake.c index 6fd9651..1a2cac1 100644 --- a/src/liblsquic/lsquic_handshake.c +++ b/src/liblsquic/lsquic_handshake.c @@ -646,6 +646,9 @@ static int parse_hs_data (lsquic_enc_session_t *enc_session, uint32_t tag, { const unsigned char *p, *end; unsigned pub_idx, idx; +#ifdef WIN32 + pub_idx = 0; +#endif for (p = val; p < val + len; p += 4) if (0 == memcmp(p, "C255", 4))