summaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-12-17 12:51:51 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-12-17 16:28:03 +0100
commit697689eb0bcafdd44ad2c0421def65c2746361c5 (patch)
treea70f98b12a93705bb90715510b84b8811519dfb9 /src/tool_operate.c
parentd8a9de62034cff6153ab78cff3e3ae30f786ec39 (diff)
downloadcurl-bagder/curl-overwrite-on-content-disposition.tar.gz
curl -J: do not append to the destination filebagder/curl-overwrite-on-content-disposition
Fixes #3380
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c2
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;
}