From 2fcf3a9cf20da119533c436466ee4bbc76e627f5 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 23 Jan 2024 15:48:04 +0100 Subject: [PATCH] xml diff ordered by user --- lib/src/clixon_xml_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/clixon_xml_io.c b/lib/src/clixon_xml_io.c index 30fd538a..d1972db8 100644 --- a/lib/src/clixon_xml_io.c +++ b/lib/src/clixon_xml_io.c @@ -1099,7 +1099,7 @@ xml_diff2cbuf(cbuf *cb, eq = xml_cmp(x0c, x1c, 0, 0, NULL); yc0 = xml_spec(x0c); yc1 = xml_spec(x1c); - if (eq && yc0 && yc1 && yang_find(yc0, Y_ORDERED_BY, "user")){ + if (eq && yc0 && yc1 && yc0 == yc1 && yang_find(yc0, Y_ORDERED_BY, "user")){ if (xml_diff2cbuf_ordered_by_user(cb, x0, x1, x0c, x1c, yc0, level, skiptop) < 0) goto done;