static int pf_read (void)
{
- struct pf_status state;
+ struct pf_status state = { 0 };
int fd;
int status;
int i;
return (-1);
}
- memset (&state, 0, sizeof (state));
status = ioctl (fd, DIOCGETSTATUS, &state);
if (status != 0)
{
}
close (fd);
- fd = -1;
if (!state.running)
{