X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmatch_regex.c;h=2dee9a8fc39b4afa59c7a5dfadaed0c7ecf36632;hb=69b8a9a1af204685dfdfaf1279a0f2928e0bbb32;hp=bbc35cd4c1284770d12840e8706040c7bbd00132;hpb=12f249b209d7fa31e3a9d53315e47a2342463e0f;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;