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