aboutsummaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-08-06 23:59:28 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-08-06 23:59:28 +0200
commit3b9103e4a69943b0b76e53a8d12e7de38ef88841 (patch)
tree979c46b615dcdc94273eff5db140a2b10246637c /src/tool_operate.c
parent77c66e02472f9db38957044a3fdcc7f78640abf2 (diff)
operate: fix clang-analyzer warnings for never read variables
Two separate "Value stored to 'XXX' is never read" warnings
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. */