summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-05-14 06:00:40 +0000
committerGisle Vanem <gvanem@broadpark.no>2005-05-14 06:00:40 +0000
commitecdcb0ef67882b6d80e4849142bb3f398e1fac0b (patch)
tree4e00279a1e25722b4b0c81220e46a3c3e1f62338
parent6a04a03eb5f4b6b10ae6e3d42b9f00937e51d41c (diff)
downloadgnurl-ecdcb0ef67882b6d80e4849142bb3f398e1fac0b.tar.gz
gnurl-ecdcb0ef67882b6d80e4849142bb3f398e1fac0b.tar.bz2
gnurl-ecdcb0ef67882b6d80e4849142bb3f398e1fac0b.zip
Some patches for (a stricter/smarter) gcc 4.0 and
warnings like: 'x' may be used uninitialized in this function.
-rw-r--r--lib/ftp.c2
-rw-r--r--lib/url.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 0d7d5a927..98b197a8b 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 8adcbda8d..24c0a7407 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)