From: Daniel Stenberg Date: Mon, 6 Aug 2012 21:59:28 +0000 (+0200) Subject: operate: fix clang-analyzer warnings for never read variables X-Git-Tag: curl-7_28_0~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b9103e4a69943b0b76e53a8d12e7de38ef88841;p=curl operate: fix clang-analyzer warnings for never read variables Two separate "Value stored to 'XXX' is never read" warnings --- 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. */