commit | 409401c044da02c84cb3ec5f4edb01d79a1f16a7 | [log] [tgz] |
---|---|---|
author | Nicholas Wilson <nicholas.wilson@realvnc.com> | Wed Apr 13 11:48:25 2016 +0100 |
committer | Nicholas Wilson <nicholas.wilson@realvnc.com> | Wed Apr 13 11:56:22 2016 +0100 |
tree | 4236735e6f27e02d8baea809f5564b943f6919d7 | |
parent | 2cc69fffcf431085f18f4e59c3c5188297f97b87 [diff] [blame] |
Shut up a few clang-analyze warnings about use of uninitialized variables The functions are all safe, Clang just isn't clever enough to realise it.
diff --git a/library/pkcs12.c b/library/pkcs12.c index 7023b9d..c603a13 100644 --- a/library/pkcs12.c +++ b/library/pkcs12.c
@@ -93,7 +93,7 @@ unsigned char *key, size_t keylen, unsigned char *iv, size_t ivlen ) { - int ret, iterations; + int ret, iterations = 0; mbedtls_asn1_buf salt; size_t i; unsigned char unipwd[PKCS12_MAX_PWDLEN * 2 + 2];