Skip to content

Commit f933e66

Browse files
committed
diff BUGFIX proper orig-dflt source node
1 parent d40d933 commit f933e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ lyd_diff_merge_delete(struct lyd_node *diff_match, enum lyd_diff_op cur_op, cons
17251725
if (diff_match->schema->nodetype & LYD_NODE_TERM) {
17261726
/* add orig-default meta because it is expected */
17271727
LY_CHECK_RET(lyd_new_meta(LYD_CTX(src_diff), diff_match, NULL, "yang:orig-default",
1728-
diff_match->flags & LYD_DEFAULT ? "true" : "false", 0, NULL));
1728+
src_diff->flags & LYD_DEFAULT ? "true" : "false", 0, NULL));
17291729
} else if (!lysc_is_dup_inst_list(diff_match->schema)) {
17301730
/* keep operation for all descendants (for now) */
17311731
LY_LIST_FOR(lyd_child_no_keys(diff_match), child) {

0 commit comments

Comments
 (0)