From 3b9103e4a69943b0b76e53a8d12e7de38ef88841 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 6 Aug 2012 23:59:28 +0200 Subject: [PATCH] operate: fix clang-analyzer warnings for never read variables Two separate "Value stored to 'XXX' is never read" warnings --- src/tool_operate.c | 5 +---- 1 file changed, 1 insertion(+), 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. */