X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftarget_v5upgrade.c;h=f7baa3aee468ce5e1a5cac6f29ea7f2a8ee8ecc9;hb=3d74a63ae43c1786eb9b966e2209c24c5643dae8;hp=d85a181fb933d9fbdda91c8c366539834fbf8586;hpb=79593ed5e0a3def8e91be5b1de15a536af2d4a92;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;