From: Matt Caswell Date: Thu, 20 Oct 2016 23:00:19 +0000 (+0100) Subject: Fix some bogus uninit variable warnings X-Git-Tag: OpenSSL_1_1_1-pre1~3319 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=47263ace13c47a3e2c4c9c4439884cf1ff8e6866;p=oweals%2Fopenssl.git Fix some bogus uninit variable warnings Reviewed-by: Richard Levitte --- diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c index 0effdd2a13..326d8b6589 100644 --- a/crypto/bio/bio_lib.c +++ b/crypto/bio/bio_lib.c @@ -348,7 +348,7 @@ int BIO_write_ex(BIO *b, const void *in, size_t inl, size_t *written) int BIO_puts(BIO *b, const char *in) { int ret; - size_t written; + size_t written = 0; if ((b == NULL) || (b->method == NULL) || (b->method->bputs == NULL)) { BIOerr(BIO_F_BIO_PUTS, BIO_R_UNSUPPORTED_METHOD); @@ -391,7 +391,7 @@ int BIO_puts(BIO *b, const char *in) int BIO_gets(BIO *b, char *out, int outl) { int ret; - size_t read; + size_t read = 0; if ((b == NULL) || (b->method == NULL) || (b->method->bgets == NULL)) { BIOerr(BIO_F_BIO_GETS, BIO_R_UNSUPPORTED_METHOD);