diff --git a/lib/ftp.c b/lib/ftp.c index eb92a67f4714504bb7a5065f66a6a2376e4244ae..4bc91b9f61406a5e84d32b722301699e940116b2 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -274,8 +274,7 @@ static CURLcode ftp_readresp(curl_socket_t sockfd, struct ftp_conn *ftpc = &conn->proto.ftpc; int code = 0; - if (ftpcode) - *ftpcode = 0; /* 0 for errors or not done */ + *ftpcode = 0; /* 0 for errors or not done */ ptr=buf + ftpc->nread_resp; @@ -417,7 +416,6 @@ static CURLcode ftp_readresp(curl_socket_t sockfd, *ftpcode=code; /* return the initial number like this */ - /* store the latest code for later retrieval */ conn->data->info.httpcode=code;