X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fvarnish.c;h=6cc092c0041eac9fcb028e179610f1c4cf40606e;hb=361f0013d5a20fa0b229376ddc3804c6e00058c5;hp=e65b2a37223ffea64a8ded1d33f6fab22361afb7;hpb=c3cc7a2e9cfa5152ed80066255f11f1371288353;p=collectd.git diff --git a/src/varnish.c b/src/varnish.c index e65b2a37..6cc092c0 100644 --- a/src/varnish.c +++ b/src/varnish.c @@ -938,7 +938,6 @@ static int varnish_config_apply_default (user_config_t *conf) /* {{{ */ static int varnish_init (void) /* {{{ */ { user_config_t *conf; - user_data_t ud; if (have_instance) return (0); @@ -952,8 +951,10 @@ static int varnish_init (void) /* {{{ */ varnish_config_apply_default (conf); - ud.data = conf; - ud.free_func = varnish_config_free; + user_data_t ud = { + .data = conf, + .free_func = varnish_config_free + }; plugin_register_complex_read (/* group = */ "varnish", /* name = */ "varnish/localhost",