projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db4a13b
)
pf plugin: value stored in fd is never read
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 27 Apr 2016 12:56:42 +0000
(14:56 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 27 Apr 2016 12:56:42 +0000
(14:56 +0200)
Found by scan-build:
pf.c:109:2: warning: Value stored to 'fd' is never read
fd = -1;
^ ~~
src/pf.c
patch
|
blob
|
history
diff --git
a/src/pf.c
b/src/pf.c
index
a2bd549
..
225d536
100644
(file)
--- a/
src/pf.c
+++ b/
src/pf.c
@@
-106,7
+106,6
@@
static int pf_read (void)
}
close (fd);
- fd = -1;
if (!state.running)
{