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:
Viktor Szakats 2026-02-28 11:29:16 +01:00
parent 006f561f6e
commit bcc8144b89
No known key found for this signature in database
5 changed files with 16 additions and 15 deletions

View file

@ -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;