aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-03-31 10:39:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-03-31 10:39:54 +0000
commit3af08472ad792c598c3257ffc8e9198c8b66f34d (patch)
tree8221f207282836ce572c33e1ada8beeb39ef0118
parentfdc1b61507ae80bb4bfcec7a2ebac29e26059d43 (diff)
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
-rw-r--r--lib/ftp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index eb92a67f4..4bc91b9f6 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;