Skip to content

Commit 1b53688

Browse files
committed
tree schema BUGFIX init loop var
Fixes #2383
1 parent c0c53b2 commit 1b53688

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tree_schema_common.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ lysp_load_submodules(struct lysp_ctx *pctx, struct lysp_module *pmod, struct ly_
11161116
{
11171117
LY_ERR r;
11181118
struct ly_ctx *ctx = PARSER_CTX(pctx);
1119-
struct lysp_submodule *submod = NULL;
1119+
struct lysp_submodule *submod;
11201120
struct lysp_include *inc;
11211121
LY_ARRAY_COUNT_TYPE u;
11221122
ly_bool submod_included;
@@ -1127,6 +1127,7 @@ lysp_load_submodules(struct lysp_ctx *pctx, struct lysp_module *pmod, struct ly_
11271127
continue;
11281128
}
11291129

1130+
submod = NULL;
11301131
submod_included = 1;
11311132
if (pmod->is_submod) {
11321133
/* try to find the submodule in the main module or its submodules */

0 commit comments

Comments
 (0)