From f0ca8f89f866fd2214241758b8485a462d3f6f01 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 20 Oct 2016 23:49:41 +0100 Subject: [PATCH] Fix some bogus warnings about uninitialised variables Travis was failing in some builds due to a bogus complaint about uninit variables. Reviewed-by: Rich Salz --- ssl/record/rec_layer_s3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index 0192fd8547..165b032748 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -293,7 +293,7 @@ int ssl3_read_n(SSL *s, size_t n, size_t max, int extend, int clearold, } while (left < n) { - size_t bioread; + size_t bioread = 0; int ret; /* @@ -908,7 +908,7 @@ int ssl3_write_pending(SSL *s, int type, const unsigned char *buf, size_t len, int i; SSL3_BUFFER *wb = s->rlayer.wbuf; size_t currbuf = 0; - size_t tmpwrit; + size_t tmpwrit = 0; if ((s->rlayer.wpend_tot > len) || ((s->rlayer.wpend_buf != buf) && -- 2.25.1