Skip to content

Commit

Permalink
fix(config_compiler): null value should not overwrite a normal key in…
Browse files Browse the repository at this point in the history
… a merged tree
  • Loading branch information
lotem committed Sep 15, 2017
1 parent a862298 commit 4ecae44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rime/config/config_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ inline static bool IsMerging(const string& key,
bool merge_tree) {
return key == ConfigCompiler::MERGE_DIRECTIVE ||
boost::ends_with(key, ADD_SUFFIX_OPERATOR) ||
(merge_tree && Is<ConfigMap>(value) &&
(merge_tree && (!value || Is<ConfigMap>(value)) &&
!boost::ends_with(key, EQU_SUFFIX_OPERATOR));
}

Expand Down

0 comments on commit 4ecae44

Please sign in to comment.