parser BUGFIX inserting to tpdfs_nodes
This commit remove 'if condition' which was probably added due to
parse_finalize_reallocated, see 7fc6829. Then the function was renamed,
see d2ebe57. Then was completly removed, see 2a9fc65. So therefore this
condition is invalid and leads to misbehavior.
diff --git a/src/parser_yang.c b/src/parser_yang.c
index 48d8d44..8147a7f 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -2693,7 +2693,7 @@
}
/* store data for collision check */
- if (parent && !(parent->nodetype & (LYS_GROUPING | LYS_RPC | LYS_ACTION | LYS_INPUT | LYS_OUTPUT | LYS_NOTIF))) {
+ if (parent) {
assert(ctx->main_ctx);
LY_CHECK_RET(ly_set_add(&ctx->main_ctx->tpdfs_nodes, parent, 0, NULL));
}