X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmatch_regex.c;h=2dee9a8fc39b4afa59c7a5dfadaed0c7ecf36632;hb=71bbf854d3e6f8c6d6c3582527263bb01a3a7e04;hp=bbc35cd4c1284770d12840e8706040c7bbd00132;hpb=6600bd1351bf81e0831e7ad95ee37a7b28cbdf94;p=collectd.git diff --git a/src/match_regex.c b/src/match_regex.c index bbc35cd4..2dee9a8f 100644 --- a/src/match_regex.c +++ b/src/match_regex.c @@ -303,9 +303,8 @@ static int mr_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 = mr_create; mproc.destroy = mr_destroy; mproc.match = mr_match;