diff options
author | Matt Caswell <matt@openssl.org> | 2016-10-21 00:00:19 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-10-28 09:48:54 +0100 |
commit | 47263ace13c47a3e2c4c9c4439884cf1ff8e6866 (patch) | |
tree | 95cb4724ee168701c8868c27752b3a53bf5acf66 /crypto/bio/bio_lib.c | |
parent | b055fceb9bd8f613f39dab9df4d77b2a95231755 (diff) |
Fix some bogus uninit variable warnings
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bio/bio_lib.c')
-rw-r--r-- | crypto/bio/bio_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |