mirror of
https://github.com/curl/curl.git
synced 2026-08-05 02:16:13 +03:00
clang-tidy: silence more minor issues found by v22
Also one found manually in lib/curl_sha512_256.c.
Follow-up to 7a08c5d820 #20762
Closes #20770
This commit is contained in:
parent
006f561f6e
commit
bcc8144b89
5 changed files with 16 additions and 15 deletions
|
|
@ -1000,10 +1000,11 @@ static int myssh_in_UPLOAD_INIT(struct Curl_easy *data,
|
|||
if(!sshc->sftp_file) {
|
||||
int err = sftp_get_error(sshc->sftp_session);
|
||||
|
||||
if(((err == SSH_FX_NO_SUCH_FILE || err == SSH_FX_FAILURE ||
|
||||
err == SSH_FX_NO_SUCH_PATH)) &&
|
||||
(data->set.ftp_create_missing_dirs &&
|
||||
(strlen(sshp->path) > 1))) {
|
||||
if((err == SSH_FX_NO_SUCH_FILE ||
|
||||
err == SSH_FX_FAILURE ||
|
||||
err == SSH_FX_NO_SUCH_PATH) &&
|
||||
data->set.ftp_create_missing_dirs &&
|
||||
(strlen(sshp->path) > 1)) {
|
||||
/* try to create the path remotely */
|
||||
rc = 0;
|
||||
sshc->secondCreateDirs = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue