Skip to content

Commit 72458d5

Browse files
committed
tree data BUGFIX proper top-level schema node check
1 parent 05188ff commit 72458d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tree_data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,7 @@ lyd_find_schema_ctx(const struct lysc_node *schema, const struct ly_ctx *trg_ctx
19971997
}
19981998
src_parent = sp;
19991999

2000-
if (!src_parent->parent) {
2000+
if (!lysc_data_parent(src_parent)) {
20012001
/* find the module first */
20022002
trg_mod = ly_ctx_get_module_implemented(trg_ctx, src_parent->module->name);
20032003
if (!trg_mod) {

0 commit comments

Comments
 (0)