X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftarget_v5upgrade.c;h=f7baa3aee468ce5e1a5cac6f29ea7f2a8ee8ecc9;hb=db961f476426f5dd3ca1663ffc094f0fc7f6f8a2;hp=d85a181fb933d9fbdda91c8c366539834fbf8586;hpb=2bda2a5648c87a2c5b8304238cd80ff17984c5cd;p=collectd.git diff --git a/src/target_v5upgrade.c b/src/target_v5upgrade.c index d85a181f..f7baa3ae 100644 --- a/src/target_v5upgrade.c +++ b/src/target_v5upgrade.c @@ -25,6 +25,7 @@ **/ #include "collectd.h" + #include "plugin.h" #include "common.h" #include "filter_chain.h" @@ -463,9 +464,8 @@ static int v5_invoke (const data_set_t *ds, value_list_t *vl, /* {{{ */ void module_register (void) { - target_proc_t tproc; + target_proc_t tproc = { 0 }; - memset (&tproc, 0, sizeof (tproc)); tproc.create = v5_create; tproc.destroy = v5_destroy; tproc.invoke = v5_invoke;