Fix some bogus warnings about uninitialised variables
authorMatt Caswell <matt@openssl.org>
Thu, 20 Oct 2016 22:49:41 +0000 (23:49 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 4 Nov 2016 12:09:46 +0000 (12:09 +0000)
Travis was failing in some builds due to a bogus complaint
about uninit variables.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/record/rec_layer_s3.c

index 0192fd85476e2d24ed6422be4643c5287c7303cc..165b0327483dd32124f5b80fa065f0d80a3b3cde 100644 (file)
@@ -293,7 +293,7 @@ int ssl3_read_n(SSL *s, size_t n, size_t max, int extend, int clearold,
     }
 
     while (left < n) {
     }
 
     while (left < n) {
-        size_t bioread;
+        size_t bioread = 0;
         int ret;
 
         /*
         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;
     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) &&
 
     if ((s->rlayer.wpend_tot > len)
         || ((s->rlayer.wpend_buf != buf) &&