From: Ruben Kerkhof Date: Tue, 2 Aug 2016 10:04:09 +0000 (+0200) Subject: pf: no need to zero-initialize status X-Git-Tag: collectd-5.6.0~132^2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=024da37d2cd352f4efcfc4615897f3ce9b07506a;p=collectd.git pf: no need to zero-initialize status The kernel bcopies properly sized data into this struct --- 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;