mirror of
https://github.com/moparisthebest/curl
synced 2024-11-17 15:05:02 -05:00
tool_operate: Expression 'config->resume_from' is always true
Fixes warning detected by PVS-Studio Fixes #4374
This commit is contained in:
parent
b5a69b7a35
commit
2d5f76f22f
@ -977,11 +977,11 @@ static CURLcode create_transfers(struct GlobalConfig *global,
|
||||
#ifdef __VMS
|
||||
/* open file for output, forcing VMS output format into stream
|
||||
mode which is needed for stat() call above to always work. */
|
||||
FILE *file = fopen(outfile, config->resume_from?"ab":"wb",
|
||||
FILE *file = fopen(outfile, "ab",
|
||||
"ctx=stm", "rfm=stmlf", "rat=cr", "mrs=0");
|
||||
#else
|
||||
/* open file for output: */
|
||||
FILE *file = fopen(per->outfile, config->resume_from?"ab":"wb");
|
||||
FILE *file = fopen(per->outfile, "ab");
|
||||
#endif
|
||||
if(!file) {
|
||||
helpf(global->errors, "Can't open '%s'!\n", per->outfile);
|
||||
|
Loading…
Reference in New Issue
Block a user