From: Richard Levitte Date: Sun, 6 Sep 2015 10:56:33 +0000 (+0200) Subject: Remove warning about use of uninitialised variable X-Git-Tag: OpenSSL_1_1_0-pre1~699 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=297172294c5bf2b94976ac6911d4d01176fb1921;p=oweals%2Fopenssl.git Remove warning about use of uninitialised variable Reviewed-by: Rich Salz --- diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index 6522a51650..16df4eacd6 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -513,7 +513,7 @@ PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags) { BIO *tmpmem; - int ret, i; + int ret = 0, i; char *buf = NULL; if (!p7) { @@ -575,7 +575,6 @@ int PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data, int flags) break; } if (BIO_write(data, buf, i) != i) { - ret = 0; break; } }