summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-05-06 14:07:37 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-05-06 14:09:26 +0100
commit47f689ac096dcf6e507765a722cd3ed3a9bf92db (patch)
tree6bf1ecccedc174414708d000d1a84f9dd4d6b6e1 /crypto
parentf51f3741995dd4f50d4d80d8b8bcc37741f64729 (diff)
Initialize num properly.
PR#3289 PR#3345 (cherry picked from commit 3ba1e406c2309adb427ced9815ebf05f5b58d155)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/bio_b64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/bio_b64.c b/crypto/evp/bio_b64.c
index ac6d441aad..16863fe23f 100644
--- a/crypto/evp/bio_b64.c
+++ b/crypto/evp/bio_b64.c
@@ -226,6 +226,7 @@ static int b64_read(BIO *b, char *out, int outl)
else if (ctx->start)
{
q=p=(unsigned char *)ctx->tmp;
+ num = 0;
for (j=0; j<i; j++)
{
if (*(q++) != '\n') continue;