operate: fix clang-analyzer warnings for never read variables
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Aug 2012 21:59:28 +0000 (23:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Aug 2012 21:59:28 +0000 (23:59 +0200)
Two separate "Value stored to 'XXX' is never read" warnings

src/tool_operate.c

index b22dc53799cc6f0d16118a7d978fbbaf715de3be..f864918ce90eeeb53de79ac674cd2b0750e95660 100644 (file)
@@ -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. */