diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-01-16 09:17:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-01-16 09:17:04 +0000 |
commit | 61e3d75def4ca1789a847fe57b06ab25ede05731 (patch) | |
tree | c0427949550579dcd921dee721415b9ab9ca72d4 /lib | |
parent | 27b7220f1b536f3854d9fa35d0bd12321ac858e3 (diff) |
Gisle Vanem's patch for variables that "might be used uninitialized"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/content_encoding.c | 4 | ||||
-rw-r--r-- | lib/ssluse.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/content_encoding.c b/lib/content_encoding.c index da0b2f634..1eb465161 100644 --- a/lib/content_encoding.c +++ b/lib/content_encoding.c @@ -73,7 +73,7 @@ Curl_unencode_deflate_write(struct SessionHandle *data, ssize_t nread) { int status; /* zlib status */ - int result; /* Curl_client_write status */ + int result = CURLE_OK; /*?*/ /* Curl_client_write status */ char decomp[DSIZ]; /* Put the decompressed data here. */ z_stream *z = &k->z; /* zlib state structure */ @@ -217,7 +217,7 @@ Curl_unencode_gzip_write(struct SessionHandle *data, ssize_t nread) { int status; /* zlib status */ - int result; /* Curl_client_write status */ + int result = CURLE_OK; /*?*/ /* Curl_client_write status */ char decomp[DSIZ]; /* Put the decompressed data here. */ z_stream *z = &k->z; /* zlib state structure */ 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; |