aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-10-26 19:26:41 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-10-26 19:26:41 +0000
commitd3ee83747c2423143acc912cb2ff3d8f8c428b3e (patch)
tree19d6655ba6ad7f97c970120afd1ca176e44dd46c
parent3f55ed0ef7e4b277184293e5365719b7ae00c1b2 (diff)
Fixed a valgrind uninitialized variable error.
-rw-r--r--lib/ftp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 6ae3f8288..4083f3404 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -414,6 +414,7 @@ static CURLcode ftp_readresp(curl_socket_t sockfd,
int code = 0;
*ftpcode = 0; /* 0 for errors or not done */
+ *size = 0;
ptr=buf + ftpc->nread_resp;