projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27739e9
)
RT3140: Possibly-unit variable in pem_lib.c
author
Clang via Jeffrey Walton
<noloader@gmail.com>
Tue, 2 Sep 2014 21:04:53 +0000
(17:04 -0400)
committer
Rich Salz
<rsalz@openssl.org>
Wed, 3 Sep 2014 03:38:15 +0000
(23:38 -0400)
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
)
crypto/pem/pem_lib.c
patch
|
blob
|
history
diff --git
a/crypto/pem/pem_lib.c
b/crypto/pem/pem_lib.c
index 2d328b4d36c4b997a3ab716f82006caca00f007f..28fb86779e46147e3c6e7fe807f341977ab4b8b6 100644
(file)
--- 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];