commit | 420cc255e3b7e90b660dd2abcc7d2fe2dd86bf42 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Aug 24 08:14:24 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Aug 24 08:14:24 2023 +0200 |
tree | 7584f33b6635e3f0ae45fb7e8c219112ac567be9 | |
parent | 2ef4226dc0580034bd40e8f405e9f884873eeb86 [diff] [blame] |
tree data BUGFIX lyd_owner_module behavior now consistent It is meant to return the owner module for both data and opaque nodes. For node modules there is a new function now.
diff --git a/src/parser_common.c b/src/parser_common.c index 040318e..bdc8529 100644 --- a/src/parser_common.c +++ b/src/parser_common.c
@@ -197,7 +197,7 @@ assert(!iter->schema); /* get module */ - mod = lyd_owner_module(iter); + mod = lyd_node_module(iter); if (!mod) { /* unknown module, no schema node */ schema = NULL;