X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmatch_timediff.c;h=3b154150aac1aae6c06f491bc7ab3a32e89d808e;hb=3fae5596643f1e361eb18c3d65448f8bc02fdd80;hp=750817be129b1db04ef64c4dd8956822c0338985;hpb=23faf977688c7123d624b2911e69e2c9f4d0f78c;p=collectd.git diff --git a/src/match_timediff.c b/src/match_timediff.c index 750817be..3b154150 100644 --- a/src/match_timediff.c +++ b/src/match_timediff.c @@ -144,9 +144,8 @@ static int mt_match (const data_set_t __attribute__((unused)) *ds, /* {{{ */ void module_register (void) { - match_proc_t mproc; + match_proc_t mproc = { 0 }; - memset (&mproc, 0, sizeof (mproc)); mproc.create = mt_create; mproc.destroy = mt_destroy; mproc.match = mt_match;