mirror of
https://github.com/curl/curl.git
synced 2026-06-07 15:04:17 +03:00
tidy-up: replace (0 == expressions
This commit is contained in:
parent
2530adcf4d
commit
bc72ca01e9
17 changed files with 23 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue