mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:23:31 +03:00
tidy-up: drop stray comparisons with literal zero
Drop from: - strcmp, strcmpi, strncmp, memcmp, lstat, getrlimit, setrlimit, fseek, fstat - autotools detection snippets. - smooth-gtk-thread: simplify `!var != 0` expression. Closes #21947
This commit is contained in:
parent
2f3fa479dd
commit
97aed9c960
43 changed files with 142 additions and 143 deletions
|
|
@ -687,7 +687,7 @@ static CURLcode parse_netscape(struct Cookie *co,
|
|||
* Firefox's cookie files, they are prefixed #HttpOnly_ and the rest
|
||||
* remains as usual, so we skip 10 characters of the line.
|
||||
*/
|
||||
if(strncmp(lineptr, "#HttpOnly_", 10) == 0) {
|
||||
if(!strncmp(lineptr, "#HttpOnly_", 10)) {
|
||||
lineptr += 10;
|
||||
co->httponly = TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue