Skip to content

Commit 969b050

Browse files
committed
schema tree BUGFIX fatal error on -1 returned
1 parent dc26b93 commit 969b050

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tree_schema.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4822,7 +4822,7 @@ lys_make_implemented_r(struct lys_module *module, struct unres_schema *unres)
48224822

48234823
/* apply augment */
48244824
if ((module->augment[i].flags & LYS_NOTAPPLIED) && apply_aug(&module->augment[i], unres)) {
4825-
return EXIT_FAILURE;
4825+
return -1;
48264826
}
48274827
}
48284828

@@ -4851,7 +4851,7 @@ lys_make_implemented_r(struct lys_module *module, struct unres_schema *unres)
48514851

48524852
/* apply augment */
48534853
if ((module->inc[i].submodule->augment[j].flags & LYS_NOTAPPLIED) && apply_aug(&module->inc[i].submodule->augment[j], unres)) {
4854-
return EXIT_FAILURE;
4854+
return -1;
48554855
}
48564856
}
48574857

@@ -4874,7 +4874,7 @@ lys_make_implemented_r(struct lys_module *module, struct unres_schema *unres)
48744874
if (((struct lys_node_leaf *)node)->type.base == LY_TYPE_LEAFREF) {
48754875
if (unres_schema_add_node(module, unres, &((struct lys_node_leaf *)node)->type,
48764876
UNRES_TYPE_LEAFREF, node) == -1) {
4877-
return EXIT_FAILURE;
4877+
return -1;
48784878
}
48794879
}
48804880
}

0 commit comments

Comments
 (0)