Skip to content

Commit a8c9f74

Browse files
committed
diff BUGFIX generating diff from invalid edit
1 parent 24c17a3 commit a8c9f74

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
@@ -380,7 +380,7 @@ lyd_diff_add(const struct lyd_node *node, enum lyd_diff_op op, const char *orig_
380380

381381
if (match && (parent == node)) {
382382
/* special case when there is already an operation on our descendant */
383-
assert(!lyd_diff_get_op(diff_parent, &cur_op, NULL) && (cur_op == LYD_DIFF_OP_NONE));
383+
assert(!lyd_diff_get_op(diff_parent, &cur_op, NULL));
384384

385385
/* move it to the end where it is expected (matters for user-ordered lists) */
386386
if (lysc_is_userordered(diff_parent->schema)) {

0 commit comments

Comments
 (0)