X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpf.c;h=e8e0b185e21b474b216e134623805ca421bba06c;hb=a5377cf935630082f2eac2e5f4a538844cc06c8d;hp=a2bd5499916d735a3ec8143e93c8d79caa3485cf;hpb=e030096e4f5a0bbdd42635bfeb95e39d150cac72;p=collectd.git diff --git a/src/pf.c b/src/pf.c index a2bd5499..e8e0b185 100644 --- 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) {