YANG parser BUGFIX updating pointers to objects stored in sized arrays
When creating parsed schema tree, various sized arrays are resized
(reallocated) as necessary so the location of the objects stored in them
may change. Therefore it is necessary to update all such pointers
(typically parent pointer) when the parsing is finished.
diff --git a/src/tree_schema.c b/src/tree_schema.c
index 4e5ffb3..d1f1b76 100644
--- a/src/tree_schema.c
+++ b/src/tree_schema.c
@@ -724,7 +724,7 @@
}
mod->parsed->parsing = 0;
- /* check name collisions - typedefs and groupings */
+ /* check name collisions - typedefs and TODO groupings */
LY_CHECK_GOTO(lysp_check_typedefs(&context, mod->parsed), error_ctx);
return mod;