From: Matt Caswell Date: Thu, 20 Oct 2016 22:49:41 +0000 (+0100) Subject: Fix some bogus warnings about uninitialised variables X-Git-Tag: OpenSSL_1_1_1-pre1~3200 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f0ca8f89f866fd2214241758b8485a462d3f6f01;p=oweals%2Fopenssl.git 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 --- 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) &&