提交 0ff3687e 编写于 作者: C Clang via Jeffrey Walton 提交者: Rich Salz

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: NMatt Caswell <matt@openssl.org>
上级 86f50b36
...@@ -443,7 +443,7 @@ err: ...@@ -443,7 +443,7 @@ err:
int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen, int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen,
pem_password_cb *callback,void *u) pem_password_cb *callback,void *u)
{ {
int i,j,o,klen; int i=0,j,o,klen;
long len; long len;
EVP_CIPHER_CTX ctx; EVP_CIPHER_CTX ctx;
unsigned char key[EVP_MAX_KEY_LENGTH]; unsigned char key[EVP_MAX_KEY_LENGTH];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册