projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: replace memset to 0 with initializers
[collectd.git]
/
src
/
pf.c
diff --git
a/src/pf.c
b/src/pf.c
index
225d536
..
42679fe
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;
+ struct pf_status state
= { 0 }
;
int fd;
int status;
int i;
@@
-94,7
+94,6
@@
static int pf_read (void)
return (-1);
}
- memset (&state, 0, sizeof (state));
status = ioctl (fd, DIOCGETSTATUS, &state);
if (status != 0)
{