summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-09-17 16:00:48 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-09-17 16:00:48 +0200
commitd27b24641a4efb45686da744231979d7fc4fb0d4 (patch)
tree4f9effc940e9b4999865978186067fa707eab341
parent718370e9f1c8b0aaf026ca0701db655bde06cb50 (diff)
downloadcurl-bagder/ftp-remove-PPSENDF.tar.gz
fixup please code analyzer and init ftpcodebagder/ftp-remove-PPSENDF
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 3e04ff26c..868a97a53 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3364,17 +3364,17 @@ static
CURLcode ftp_sendquote(struct connectdata *conn, struct curl_slist *quote)
{
struct curl_slist *item;
- ssize_t nread;
- int ftpcode;
struct ftp_conn *ftpc = &conn->proto.ftpc;
struct pingpong *pp = &ftpc->pp;
item = quote;
while(item) {
if(item->data) {
+ ssize_t nread;
char *cmd = item->data;
bool acceptfail = FALSE;
CURLcode result;
+ int ftpcode = 0;
/* if a command starts with an asterisk, which a legal FTP command never
can, the command will be allowed to fail without it causing any