summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 10:33:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-19 10:33:56 +0200
commit19ae602f4d70288cf86965f1aee2115df8e18045 (patch)
tree0a0de54737c37947f9f2c696c0ca261c45404072
parent6a2a37a37b99f42d57f234915bc6d79d64744337 (diff)
downloadcurl-19ae602f4d70288cf86965f1aee2115df8e18045.tar.gz
tool_operate: Expression 'config->resume_from' is always true
-rw-r--r--src/tool_operate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 09dfc0c84..5364e8307 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -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);