From 61e3d75def4ca1789a847fe57b06ab25ede05731 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 16 Jan 2004 09:17:04 +0000 Subject: Gisle Vanem's patch for variables that "might be used uninitialized" --- lib/ssluse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/ssluse.c') diff --git a/lib/ssluse.c b/lib/ssluse.c index 95a4a1aa5..f53c8dc7e 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -783,7 +783,7 @@ static CURLcode verifyhost(struct connectdata *conn, char peer_CN[257]; bool matched = FALSE; /* no alternative match yet */ int target = GEN_DNS; /* target type, GEN_DNS or GEN_IPADD */ - int addrlen; + int addrlen = 0; struct SessionHandle *data = conn->data; STACK_OF(GENERAL_NAME) *altnames; #ifdef ENABLE_IPV6 @@ -809,9 +809,9 @@ static CURLcode verifyhost(struct connectdata *conn, altnames = X509_get_ext_d2i(server_cert, NID_subject_alt_name, NULL, NULL); if(altnames) { - int hostlen; - int domainlen; - char *domain; + int hostlen = 0; + int domainlen = 0; + char *domain = NULL; int numalts; int i; -- cgit v1.2.3