From 024da37d2cd352f4efcfc4615897f3ce9b07506a Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Tue, 2 Aug 2016 12:04:09 +0200 Subject: [PATCH] pf: no need to zero-initialize status The kernel bcopies properly sized data into this struct --- src/pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pf.c b/src/pf.c index 42679feb..c9aeb5ff 100644 --- a/src/pf.c +++ b/src/pf.c @@ -79,7 +79,7 @@ static void pf_submit (char const *type, char const *type_instance, static int pf_read (void) { - struct pf_status state = { 0 }; + struct pf_status state; int fd; int status; int i; -- 2.11.0