aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;