Commit 3af08472 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Removed check for ftpcode being NULL, as later it is derefenced unconditionally

anyway and we can just as well rely on it being valid.
CID 12, coverity.com scan
parent fdc1b615
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -274,7 +274,6 @@ 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 */

  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;