Stylistic, equivalent change
This commit is contained in:
parent
2d8a8e0b1b
commit
f6d74544f8
@ -4873,10 +4873,8 @@ config_load (struct config *self, struct config_item *root)
|
|||||||
(&root->value.object, module->name);
|
(&root->value.object, module->name);
|
||||||
// Silently fix inputs that only a lunatic user could create
|
// Silently fix inputs that only a lunatic user could create
|
||||||
if (!subtree || subtree->type != CONFIG_ITEM_OBJECT)
|
if (!subtree || subtree->type != CONFIG_ITEM_OBJECT)
|
||||||
{
|
str_map_set (&root->value.object, module->name,
|
||||||
subtree = config_item_object ();
|
(subtree = config_item_object ()));
|
||||||
str_map_set (&root->value.object, module->name, subtree);
|
|
||||||
}
|
|
||||||
if (module->loader)
|
if (module->loader)
|
||||||
module->loader (subtree, module->user_data);
|
module->loader (subtree, module->user_data);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user