X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fjava.c;h=73fd566ba87becf5d67f47aef314b76fb4cf955b;hb=dbbdb25542df6d9afbfddf78a3b1a8fee9029a80;hp=1d762219c0fe710613f9e6729ac7efa63b110022;hpb=de38c1a6e44cadfc88fc6e1d0919663f0c08bbdc;p=collectd.git 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,