X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fpf.c;h=c9aeb5ff22f3be3b48c295e16f242f530a112858;hb=5afde1077e3c8fc119b79caa2572cbf84dbfe5ca;hp=a2bd5499916d735a3ec8143e93c8d79caa3485cf;hpb=42a7c90f4478e98dc970927cfda7ec2e1081f364;p=collectd.git diff --git a/src/pf.c b/src/pf.c index a2bd5499..c9aeb5ff 100644 --- a/src/pf.c +++ b/src/pf.c @@ -94,7 +94,6 @@ static int pf_read (void) return (-1); } - memset (&state, 0, sizeof (state)); status = ioctl (fd, DIOCGETSTATUS, &state); if (status != 0) { @@ -106,7 +105,6 @@ static int pf_read (void) } close (fd); - fd = -1; if (!state.running) {