operate: fix clang-analyzer warnings for never read variables

Two separate "Value stored to 'XXX' is never read" warnings
This commit is contained in:
Daniel Stenberg 2012-08-06 23:59:28 +02:00
parent 77c66e0247
commit 3b9103e4a6
1 changed files with 1 additions and 4 deletions

View 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. */