libssh2: drop stray double-negative from strncmp() result

Just a tidy-up. Logic remains identical.

Spotted by GitHub Code Quality

Follow-up to a867314f4f #16382

Closes #22126
This commit is contained in:
Viktor Szakats 2026-06-22 10:34:38 +02:00
parent 2735ef3bae
commit b3675fe80a
No known key found for this signature in database

View file

@ -1207,7 +1207,7 @@ static CURLcode sftp_quote_stat(struct Curl_easy *data,
sshc->acceptfail = TRUE;
}
if(!!strncmp(cmd, "chmod", 5)) {
if(strncmp(cmd, "chmod", 5)) {
/* Since chown and chgrp only set owner OR group but libssh2 wants to set
* them both at once, we need to obtain the current ownership first. This
* takes an extra protocol round trip.