diff options
Diffstat (limited to 'src/cnode')
-rw-r--r-- | src/cnode/cnode-algorithm.cpp | 1 | ||||
-rw-r--r-- | src/cnode/cnode.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/cnode/cnode-algorithm.cpp b/src/cnode/cnode-algorithm.cpp index 9f67d7d..58e8a65 100644 --- a/src/cnode/cnode-algorithm.cpp +++ b/src/cnode/cnode-algorithm.cpp @@ -131,6 +131,7 @@ _diff_print_comment(CfgNode *cfg1, CfgNode *cfg2, int level) } else { // same node => no diff pfx_diff = PFX_DIFF_NULL.c_str(); + comment = cfg1->getComment(); } if (comment == "") { // no comment diff --git a/src/cnode/cnode.cpp b/src/cnode/cnode.cpp index d1f519e..4ebbb2b 100644 --- a/src/cnode/cnode.cpp +++ b/src/cnode/cnode.cpp @@ -47,6 +47,7 @@ CfgNode::CfgNode(Cstore& cstore, vector<string>& path_comps, _is_default = cstore.cfgPathDefault(path_comps, active); _is_deactivated = cstore.cfgPathDeactivated(path_comps, active); cstore.cfgPathGetComment(path_comps, _comment, active); + // ignore return if (_is_leaf && _is_value) { /* recursion should never reach here. if path is specified by user, |