diff options
author | Marcel Raad <MarcelRaad@users.noreply.github.com> | 2016-03-30 17:23:02 +0200 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2016-03-30 23:55:00 +0100 |
commit | 4dae049157102c47b11a3bea19f06819a1e42d6c (patch) | |
tree | 7a985355a47baa1bf00cdfecfa25c993eedca930 /lib | |
parent | 575e885db0f3b2c50434f63269438fe21cbbb978 (diff) |
openssl: Fix compilation warnings
When compiling with OpenSSL 1.1.0 (so that the HAVE_X509_GET0_SIGNATURE
&& HAVE_X509_GET0_EXTENSIONS pre-processor block is active), Visual C++
14 complains:
warning C4701: potentially uninitialized local variable 'palg' used
warning C4701: potentially uninitialized local variable 'psig' used
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index f8ccb234a..54fbfad2a 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2322,7 +2322,7 @@ static CURLcode get_cert_chain(struct connectdata *conn, EVP_PKEY *pubkey=NULL; int j; char *ptr; - ASN1_BIT_STRING *psig; + ASN1_BIT_STRING *psig = NULL; X509_NAME_print_ex(mem, X509_get_subject_name(x), 0, XN_FLAG_ONELINE); push_certinfo("Subject", i); @@ -2342,7 +2342,7 @@ static CURLcode get_cert_chain(struct connectdata *conn, #if defined(HAVE_X509_GET0_SIGNATURE) && defined(HAVE_X509_GET0_EXTENSIONS) { - X509_ALGOR *palg; + X509_ALGOR *palg = NULL; ASN1_STRING *a = ASN1_STRING_new(); if(a) { X509_get0_signature(&psig, &palg, x); |