commit | 482a6827018934d66d2be3b02c0e44aedb193118 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri May 06 08:56:12 2022 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri May 06 08:56:12 2022 +0200 |
tree | 656569d45358a0ab80a035d0e333de11bcd10138 | |
parent | bd12eef539e367011a957d892d414ee009ce2da4 [diff] [blame] |
xpath BUGFIX opaque nodes have no XPath position Fixes #1841
diff --git a/src/xpath.c b/src/xpath.c index 37d1021..8681a85 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -1360,7 +1360,7 @@ LYD_TREE_DFS_continue = 0; } - if ((root_type == LYXP_NODE_ROOT_CONFIG) && (elem->schema->flags & LYS_CONFIG_R)) { + if (!elem->schema || ((root_type == LYXP_NODE_ROOT_CONFIG) && (elem->schema->flags & LYS_CONFIG_R))) { /* skip */ LYD_TREE_DFS_continue = 1; } else {