Reviewed-by: Richard Levitte <levitte@openssl.org>
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);
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);