diff options
Diffstat (limited to 'src/tool_cb_wrt.c')
-rw-r--r-- | src/tool_cb_wrt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_cb_wrt.c b/src/tool_cb_wrt.c index fa47dd3f3..d6688110a 100644 --- a/src/tool_cb_wrt.c +++ b/src/tool_cb_wrt.c @@ -86,7 +86,7 @@ size_t tool_write_cb(void *buffer, size_t sz, size_t nmemb, void *userdata) /* standard stream */ if(!outs->stream || outs->s_isreg || outs->fopened) check_fails = TRUE; - if(outs->alloc_filename || outs->init) + if(outs->alloc_filename || outs->is_cd_filename || outs->init) check_fails = TRUE; } if(check_fails) { @@ -104,7 +104,7 @@ size_t tool_write_cb(void *buffer, size_t sz, size_t nmemb, void *userdata) return failure; } - if(config->content_disposition) { + if(outs->is_cd_filename) { /* don't overwrite existing files */ file = fopen(outs->filename, "rb"); if(file) { |