From dbbdb25542df6d9afbfddf78a3b1a8fee9029a80 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 17 Aug 2009 10:52:16 +0200 Subject: [PATCH] java plugin: Fix configuration with multiple blocks. The number of children was not updated. --- src/java.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.11.0