projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c66e0
)
operate: fix clang-analyzer warnings for never read variables
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 6 Aug 2012 21:59:28 +0000
(23:59 +0200)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/src/tool_operate.c
b/src/tool_operate.c
index b22dc53799cc6f0d16118a7d978fbbaf715de3be..f864918ce90eeeb53de79ac674cd2b0750e95660 100644
(file)
--- 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. */