diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-12-17 12:51:51 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-12-19 08:44:02 +0100 |
commit | 4849267197682e69cfa056c2bd7a44acd123a917 (patch) | |
tree | a6d0ed8d497b48ebdcd7dd6bb837d49662d561e6 /src/tool_operate.c | |
parent | f097669248a877dece74fdb525e82bfe1b69df90 (diff) |
curl -J: do not append to the destination file
Reported-by: Kamil Dudka
Fixes #3380
Closes #3381
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index e53a9d867..429e9cf46 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1583,7 +1583,7 @@ static CURLcode operate_do(struct GlobalConfig *global, /* do not create (or even overwrite) the file in case we get no data because of unmet condition */ curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &cond_unmet); - if(!cond_unmet && !tool_create_output_file(&outs, FALSE)) + if(!cond_unmet && !tool_create_output_file(&outs)) result = CURLE_WRITE_ERROR; } |