clang warning:
pem/pem_lib.c:472:6: error: variable 'i' is used uninitialized whenever 'if'
condition is false
[-Werror,-Wsometimes-uninitialized]
if (o)
^
pem/pem_lib.c:479:7: note: uninitialized use occurs here
j += i;
^
pem/pem_lib.c:472:2: note: remove the 'if' if its condition is always true
if (o)
^~~~~~
pem/pem_lib.c:446:7: note: initialize the variable 'i' to silence this warning
int i, j, o, klen;
---
src/crypto/pem/pem_lib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/crypto/pem/pem_lib.c b/src/crypto/pem/pem_lib.c
index 945262f..92c3dc4 100644
--- a/src/crypto/pem/pem_lib.c
+++ b/src/crypto/pem/pem_lib.c
@@ -454,6 +454,7 @@ PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data,
long *plen,
(unsigned char *)buf, klen, 1, key, NULL))
return 0;
+ i = 0;
j = (int)len;
EVP_CIPHER_CTX_init(&ctx);
o = EVP_DecryptInit_ex(&ctx, cipher->cipher, NULL, key,
--
1.9.3