mirror of
https://github.com/curl/curl.git
synced 2026-07-30 12:18:08 +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
|
|
@ -234,7 +234,7 @@ static int setup(struct input *t, int num, const char *upload)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if(fstat(fileno(t->in), &file_info) != 0) {
|
||||
if(fstat(fileno(t->in), &file_info)) {
|
||||
fprintf(stderr, "error: could not stat file %s: %s\n", upload,
|
||||
strerror(errno));
|
||||
fclose(t->out);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue