mirror of
https://github.com/curl/curl.git
synced 2026-07-09 00:27:17 +03:00
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:
parent
2735ef3bae
commit
b3675fe80a
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue