X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fconfigfile.c;h=8750bef87b84a45313e82004319945815f2b74ad;hb=009c673408d3e05f8604b3fb818cf3358f984be3;hp=d9038002ad2d418105037287a1f60c352327ee0f;hpb=ed33542f4c8e61c00d76eb7f1d3d14e04a575050;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);