pf: no need to zero-initialize status
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 2 Aug 2016 10:04:09 +0000 (12:04 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 2 Aug 2016 10:04:09 +0000 (12:04 +0200)
The kernel bcopies properly sized data into this struct

src/pf.c

index 42679fe..c9aeb5f 100644 (file)
--- 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;