tidy-up: replace (0 == expressions

This commit is contained in:
Viktor Szakats 2025-07-09 19:58:33 +02:00
parent 2530adcf4d
commit bc72ca01e9
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
17 changed files with 23 additions and 23 deletions

View file

@ -66,7 +66,7 @@ static void voutf(struct GlobalConfig *global,
while(!ISBLANK(ptr[cut]) && cut) {
cut--;
}
if(0 == cut)
if(cut == 0)
/* not a single cutting position was found, just cut it at the
max text width then! */
cut = width-1;

View file

@ -1009,7 +1009,7 @@ static CURLcode setup_outfile(struct OperationConfig *config,
of the file as it is now and open it for append instead */
struct_stat fileinfo;
/* VMS -- Danger, the filesize is only valid for stream files */
if(0 == stat(per->outfile, &fileinfo))
if(stat(per->outfile, &fileinfo) == 0)
/* set offset to current file size: */
config->resume_from = fileinfo.st_size;
else