From: Daniel Stenberg Date: Fri, 16 Apr 2010 21:02:15 +0000 (+0200) Subject: FTP PASV: Value stored to 'rc' is never read X-Git-Tag: curl-7_21_0~144^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=516dfd17054c771833c4a4096f5f978e5446e7c4;p=thirdparty%2Fcurl.git FTP PASV: Value stored to 'rc' is never read --- diff --git a/lib/ftp.c b/lib/ftp.c index 9460dd9d5c..ee1fb066b7 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -1630,8 +1630,9 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn, */ rc = Curl_resolv(conn, conn->proxy.name, (int)conn->port, &addr); if(rc == CURLRESOLV_PENDING) - /* BLOCKING */ - rc = Curl_wait_for_resolv(conn, &addr); + /* BLOCKING, ignores the return code but 'addr' will be NULL in + case of failure */ + (void)Curl_wait_for_resolv(conn, &addr); connectport = (unsigned short)conn->port; /* we connect to the proxy's port */