diff --git a/lib/ftp.c b/lib/ftp.c index 0d7d5a927b926b3558f477a5e508f2d440f68934..98b197a8b354f736b913605fc51a69a300ca69fc 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -2277,7 +2277,7 @@ static CURLcode ftp_statemach_act(struct connectdata *conn) static const char * const ftpauth[] = { "SSL", "TLS" }; - size_t nread; + size_t nread = 0; if(ftp->sendleft) { /* we have a piece of a command still left to send */ diff --git a/lib/url.c b/lib/url.c index 8adcbda8dd05d42c21a4e38976f048754cd4d0bf..24c0a7407080206ce06568f41d4dd750631c3527 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2217,7 +2217,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, char *at; CURLcode result=CURLE_OK; struct connectdata *conn; - struct connectdata *conn_temp; + struct connectdata *conn_temp = NULL; size_t urllen; struct Curl_dns_entry *hostaddr; #if defined(HAVE_ALARM) && !defined(USE_ARES)