diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-12-10 21:21:21 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-12-10 21:26:17 +0100 |
commit | 620418fa3b5911f54fb76f01b76b1706a46c3bb2 (patch) | |
tree | 7da5e540fd316361cf357a90421d8009ba497c51 /common.c | |
parent | 28e4bc13996073a8f7777abba06d53396dfe9d27 (diff) | |
download | xK-620418fa3b5911f54fb76f01b76b1706a46c3bb2.tar.gz xK-620418fa3b5911f54fb76f01b76b1706a46c3bb2.tar.xz xK-620418fa3b5911f54fb76f01b76b1706a46c3bb2.zip |
degesch: add a test for configuration
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |