Skip to content

Commit

Permalink
Config: fixed possibly unspecified behavior when using append_childre…
Browse files Browse the repository at this point in the history
…n_by_move
  • Loading branch information
Vultraz committed Feb 21, 2018
1 parent 7b4f980 commit a2eb75d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.cpp
Expand Up @@ -318,6 +318,8 @@ void config::append_children_by_move(config& cfg, const std::string& key)
for(config& value : cfg.child_range(key)) {
add_child(key, std::move(value));
}

cfg.clear_children_impl(key);
}

void config::merge_children(const std::string& key)
Expand Down

0 comments on commit a2eb75d

Please sign in to comment.