projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de38c1a
)
java plugin: Fix configuration with multiple blocks.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 17 Aug 2009 08:52:16 +0000
(10:52 +0200)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/src/java.c
b/src/java.c
index
1d76221
..
73fd566
100644
(file)
--- 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,