diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-12-28 04:02:52 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-12-28 04:03:34 +0100 |
commit | f6d74544f82ce8186e73a6ba268c2bc56b3ce5c7 (patch) | |
tree | 4294f789cd4aede0390e13a2eeb12cd89d98d0d9 | |
parent | 2d8a8e0b1b7034abe5efc81f86d7f67775621577 (diff) | |
download | liberty-f6d74544f82ce8186e73a6ba268c2bc56b3ce5c7.tar.gz liberty-f6d74544f82ce8186e73a6ba268c2bc56b3ce5c7.tar.xz liberty-f6d74544f82ce8186e73a6ba268c2bc56b3ce5c7.zip |
Stylistic, equivalent change
-rw-r--r-- | liberty.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -4873,10 +4873,8 @@ config_load (struct config *self, struct config_item *root) (&root->value.object, module->name); // Silently fix inputs that only a lunatic user could create if (!subtree || subtree->type != CONFIG_ITEM_OBJECT) - { - subtree = config_item_object (); - str_map_set (&root->value.object, module->name, subtree); - } + str_map_set (&root->value.object, module->name, + (subtree = config_item_object ())); if (module->loader) module->loader (subtree, module->user_data); } |