diff options
author | Richard Levitte <levitte@openssl.org> | 2015-12-07 20:37:08 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-12-07 20:37:08 +0100 |
commit | 39d5193201cd0d73afebbd8c08f641b541c02b77 (patch) | |
tree | 01e63818557aa839978fa56ed164f3286c733cd2 /crypto/pkcs12 | |
parent | b91dd150d2b9b5ddca37722e7f52ea59ba7f80da (diff) | |
download | openssl-39d5193201cd0d73afebbd8c08f641b541c02b77.tar.gz |
Fix clang complaints about uninitialised variables.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/pkcs12')
-rw-r--r-- | crypto/pkcs12/p12_key.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/pkcs12/p12_key.c b/crypto/pkcs12/p12_key.c index 3efdd4a5c4..6963a9796a 100644 --- a/crypto/pkcs12/p12_key.c +++ b/crypto/pkcs12/p12_key.c @@ -104,12 +104,12 @@ int PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt, int saltlen, int id, int iter, int n, unsigned char *out, const EVP_MD *md_type) { - unsigned char *B, *D, *I, *p, *Ai; + unsigned char *B = NULL, *D = NULL, *I = NULL, *p = NULL, *Ai = NULL; int Slen, Plen, Ilen, Ijlen; int i, j, u, v; int ret = 0; - BIGNUM *Ij, *Bpl1; /* These hold Ij and B + 1 */ - EVP_MD_CTX *ctx; + BIGNUM *Ij = NULL, *Bpl1 = NULL; /* These hold Ij and B + 1 */ + EVP_MD_CTX *ctx = NULL; #ifdef DEBUG_KEYGEN unsigned char *tmpout = out; int tmpn = n; |