aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 649da81d6..ba24376fe 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -622,9 +622,13 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
struct timeval now = Curl_tvnow();
size_t nread;
int cache_skip=0;
+ int value_to_be_ignored=0;
if(ftpcode)
*ftpcode = 0; /* 0 for errors */
+ else
+ /* make the pointer point to something for the rest of this function */
+ ftpcode = &value_to_be_ignored;
*nreadp=0;