summaryrefslogtreecommitdiffstats
path: root/crypto/pem
diff options
context:
space:
mode:
authorClang via Jeffrey Walton <noloader@gmail.com>2014-09-02 17:04:53 -0400
committerRich Salz <rsalz@openssl.org>2014-09-02 23:38:15 -0400
commitfa2ae04c40510262d198131c758acd8aa5a9b4ce (patch)
tree73ba2a23cbc7e49f7aad05a96329832295210ea6 /crypto/pem
parent27739e92659d38cdefa21e51b7f52b81a7ac3388 (diff)
RT3140: Possibly-unit variable in pem_lib.c
Can't really happen, but the flow of control isn't obvious. Add an initializer. Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit 0ff3687eab8b0915198ad84d83da5998860b11b3)
Diffstat (limited to 'crypto/pem')
-rw-r--r--crypto/pem/pem_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index 2d328b4d36..28fb86779e 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -443,7 +443,7 @@ err:
int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen,
pem_password_cb *callback,void *u)
{
- int i,j,o,klen;
+ int i=0,j,o,klen;
long len;
EVP_CIPHER_CTX ctx;
unsigned char key[EVP_MAX_KEY_LENGTH];