Unverified Commit 85f0133e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

libssh: remove dead code in sftp_qoute

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

Fixes #2143
Closes #2153
parent 615edc1f
Loading
Loading
Loading
Loading
+107 −113
Original line number Diff line number Diff line
@@ -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)