diff options
author | Adam Langley <agl@google.com> | 2014-11-04 05:54:22 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-11-11 00:45:32 +0300 |
commit | 08d6fe2fdb409563b49c4ed86e7e436df31664a5 (patch) | |
tree | c7ffea2c233dbd79cca5b2535ed7041a2a14a770 /crypto/pem | |
parent | e1cf3f157909db28d3b216512c466f97c91de61a (diff) |
Possibly-uninit variable in pem_lib.c.
Can't really happen, but the flow of control isn't obvious. Add an
initializer.
(Imported from upstream's fa2ae04c40510262d198131c758acd8aa5a9b4ce)
Change-Id: If393687bca9f505b825feffaf2a63895a0ea5b6a
Diffstat (limited to 'crypto/pem')
-rw-r--r-- | crypto/pem/pem_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c index 24fa877d..e16256eb 100644 --- a/crypto/pem/pem_lib.c +++ b/crypto/pem/pem_lib.c @@ -390,7 +390,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]; |