diff --git a/lib/content_encoding.c b/lib/content_encoding.c index da0b2f634c5f7add9e6dd2a125035a0a65126ee1..1eb4651610e4fe743265172c43145e2db8c00cd6 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 95a4a1aa5211039b0d82122112d9bca7c0da7e07..f53c8dc7ef069b2a219b08a55d894bc0be0938ec 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; diff --git a/src/main.c b/src/main.c index fb2f8e20cdf0bc121a9352cca1abb9f10dfd4880..65d9b0acbb5421b9cc24c4435b1b3babb21be0da 100644 --- a/src/main.c +++ b/src/main.c @@ -2567,7 +2567,7 @@ operate(struct Configurable *config, int argc, char *argv[]) int separator = 0; - FILE *infd; + FILE *infd = stdin; bool infdfopen; FILE *headerfilep = NULL; char *urlbuffer=NULL; diff --git a/src/urlglob.c b/src/urlglob.c index 8b0da9c69f0aaf0d4d96141062a1b2f3f1318421..e1be1834f267b5ebddce50d838e48518f7618896 100644 --- a/src/urlglob.c +++ b/src/urlglob.c @@ -435,8 +435,8 @@ char *glob_match_url(char *filename, URLGlob *glob) int allocsize; int stringlen=0; char numbuf[18]; - char *appendthis; - int appendlen; + char *appendthis = NULL; + int appendlen = 0; /* We cannot use the glob_buffer for storage here since the filename may * be longer than the URL we use. We allocate a good start size, then