projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a04a03
)
Some patches for (a stricter/smarter) gcc 4.0 and
author
Gisle Vanem
<gvanem@broadpark.no>
Sat, 14 May 2005 06:00:40 +0000
(06:00 +0000)
committer
Gisle Vanem
<gvanem@broadpark.no>
Sat, 14 May 2005 06:00:40 +0000
(06:00 +0000)
warnings like:
'x' may be used uninitialized in this function.
lib/ftp.c
patch
|
blob
|
history
lib/url.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
0d7d5a9
..
98b197a
100644
(file)
--- 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
8adcbda
..
24c0a74
100644
(file)
--- 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)