common BUGFIX all submodules are only in main module
Refs
@@ -1825,6 +1825,11 @@ sr_create_module_imps_incs_r(const struct lys_module *ly_mod, const struct lysp_
}
}
+ if (lysp_submod) {
+ /* all submodules are in the main module */
+ return NULL;
+ }
+
/* store all includes */
includes = (lysp_submod ? lysp_submod->includes : ly_mod->parsed->includes);
LY_ARRAY_FOR(includes, u) {
