]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Fixed a valgrind uninitialized variable error.
authorDan Fandrich <dan@coneharvesters.com>
Fri, 26 Oct 2007 19:26:41 +0000 (19:26 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 26 Oct 2007 19:26:41 +0000 (19:26 +0000)
lib/ftp.c

index 6ae3f828805a12359a76899c931d21a52a41591d..4083f3404f9193be7494ea2c355e5d1ceb633bc8 100644 (file)
--- 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;