aboutsummaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index b22dc5379..f864918ce 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -1654,11 +1654,8 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
Curl_safefree(outfile);
Curl_safefree(this_url);
- if(infdopen) {
+ if(infdopen)
close(infd);
- infdopen = FALSE;
- infd = STDIN_FILENO;
- }
if(metalink) {
/* Should exit if error is fatal. */