projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdc1b61
)
Removed check for ftpcode being NULL, as later it is derefenced unconditionally
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 31 Mar 2007 10:39:54 +0000
(10:39 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 31 Mar 2007 10:39:54 +0000
(10:39 +0000)
anyway and we can just as well rely on it being valid.
CID 12, coverity.com scan
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
eb92a67
..
4bc91b9
100644
(file)
--- 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;