degesch: add a test for configuration

This commit is contained in:
2015-12-10 21:21:21 +01:00
parent 28e4bc1399
commit 620418fa3b
2 changed files with 76 additions and 13 deletions

View File

@@ -2074,6 +2074,7 @@ static void
config_load (struct config *self, struct config_item *root)
{
hard_assert (root->type == CONFIG_ITEM_OBJECT);
if (self->root) config_item_destroy (self->root);
self->root = root;
struct str_map_iter iter;