projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52969b4
)
pf: no need to zero-initialize status
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 2 Aug 2016 10:04:09 +0000
(12:04 +0200)
committer
Ruben 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
patch
|
blob
|
history
diff --git
a/src/pf.c
b/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;