libssh: remove dead code in sftp_qoute

... by removing a superfluous NULL pointer check that also confuses
Coverity.

Fixes #2143
Closes #2153
This commit is contained in:
Daniel Stenberg 2017-12-05 09:14:04 +01:00
parent 615edc1f73
commit 85f0133ea1
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 118 additions and 124 deletions

View File

@ -2516,7 +2516,7 @@ static void sftp_quote(struct connectdata *conn)
state(conn, SSH_SFTP_NEXT_QUOTE);
return;
}
if(cmd) {
/*
* the arguments following the command must be separated from the
* command with a space so we can check for it unconditionally
@ -2642,12 +2642,6 @@ static void sftp_quote(struct connectdata *conn)
state(conn, SSH_SFTP_CLOSE);
sshc->nextstate = SSH_NO_STATE;
sshc->actualcode = CURLE_QUOTE_ERROR;
return;
}
if(!sshc->quote_item) {
state(conn, SSH_SFTP_GETINFO);
}
}
static void sftp_quote_stat(struct connectdata *conn)