schema BUGFIX return value check
diff --git a/src/tree_schema_helpers.c b/src/tree_schema_helpers.c
index ddc2d3a..6f3201e 100644
--- a/src/tree_schema_helpers.c
+++ b/src/tree_schema_helpers.c
@@ -92,7 +92,8 @@
}
if (implement && !mod->implemented) {
/* make the module implemented */
- lys_set_implemented_internal((struct lys_module*)mod, 2);
+ ret = lys_set_implemented_internal((struct lys_module*)mod, 2);
+ LY_CHECK_RET(ret);
}
if (context_node && context_node->nodetype == LYS_ACTION) {
/* move through input/output manually */