fix [load_resouce] bug #3757

thisfixesan assertion failure when using [load_resource]
This commit is contained in:
gfgtdf 2018-12-06 01:37:18 +01:00 committed by GitHub
parent c769311395
commit 36bf3a0107
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -417,7 +417,8 @@ bool config::has_child(config_key_type key) const
{
check_valid();
return children_.find(key) != children_.end();
child_map::const_iterator i = children_.find(key);
return i != children_.end() && !i->second.empty();
}
config& config::child(config_key_type key, int n)