projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
madwifi: fix scan-build warning
[collectd.git]
/
src
/
pf.c
diff --git
a/src/pf.c
b/src/pf.c
index
a2bd549
..
e8e0b18
100644
(file)
--- a/
src/pf.c
+++ b/
src/pf.c
@@
-20,6
+20,7
@@
*/
#include "collectd.h"
+
#include "plugin.h"
#include "common.h"
@@
-94,7
+95,6
@@
static int pf_read (void)
return (-1);
}
- memset (&state, 0, sizeof (state));
status = ioctl (fd, DIOCGETSTATUS, &state);
if (status != 0)
{
@@
-106,7
+106,6
@@
static int pf_read (void)
}
close (fd);
- fd = -1;
if (!state.running)
{