X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fconfigfile.c;h=8750bef87b84a45313e82004319945815f2b74ad;hb=a9191cc20f0a5af022ae1d9482af2eaf0098a46a;hp=d9038002ad2d418105037287a1f60c352327ee0f;hpb=b626c5956e7289cb3d7fceb230baba0182f36d68;p=collectd.git diff --git a/src/daemon/configfile.c b/src/daemon/configfile.c index d9038002..8750bef8 100644 --- a/src/daemon/configfile.c +++ b/src/daemon/configfile.c @@ -381,6 +381,7 @@ static int dispatch_block_plugin(oconfig_item_t *ci) { /* default to the global interval set before loading this plugin */ ctx.interval = cf_get_default_interval(); + ctx.name = strdup(name); old_ctx = plugin_set_ctx(ctx); status = plugin_load(name, /* flags = */ false);