Code

java plugin: Fix configuration with multiple blocks.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 17 Aug 2009 08:52:16 +0000 (10:52 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 17 Aug 2009 08:52:16 +0000 (10:52 +0200)
The number of children was not updated.

src/java.c

index 1d762219c0fe710613f9e6729ac7efa63b110022..73fd566ba87becf5d67f47aef314b76fb4cf955b 100644 (file)
@@ -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,