X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmatch_timediff.c;h=9e08021b05b1b512e20fcf45f65e6429f7d834ac;hb=4103105fb43cd72294f165b2541540b3a8a99532;hp=77c8f51966f3e19d7f93ee25efc5a21fe0d13afa;hpb=b81104a423234c04f0eb4ace0ec5e93a363c917a;p=collectd.git diff --git a/src/match_timediff.c b/src/match_timediff.c index 77c8f519..9e08021b 100644 --- a/src/match_timediff.c +++ b/src/match_timediff.c @@ -25,8 +25,8 @@ **/ #include "collectd.h" + #include "common.h" -#include "utils_cache.h" #include "filter_chain.h" #define SATISFY_ALL 0 @@ -145,9 +145,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;