From: Florian Forster Date: Mon, 17 Aug 2009 08:52:16 +0000 (+0200) Subject: java plugin: Fix configuration with multiple blocks. X-Git-Tag: collectd-4.7.3~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dbbdb25542df6d9afbfddf78a3b1a8fee9029a80;p=collectd.git java plugin: Fix configuration with multiple blocks. The number of children was not updated. --- diff --git a/src/java.c b/src/java.c index 1d762219..73fd566b 100644 --- a/src/java.c +++ b/src/java.c @@ -2400,6 +2400,7 @@ static int cjni_config_callback (oconfig_item_t *ci) /* {{{ */ memcpy (config_block->children + config_block->children_num, ci_copy->children, ci_copy->children_num * sizeof (*ci_copy->children)); + config_block->children_num += ci_copy->children_num; /* Delete the pointers from the copy, so `oconfig_free' can't free them. */ memset (ci_copy->children, 0,