Code

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 42679febc9d73b895b780c501c1acb8f3b97d3c8..c9aeb5ff22f3be3b48c295e16f242f530a112858 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;