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:
Родитель
615edc1f73
Коммит
85f0133ea1
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче