libyang REFACTOR uninit var false positives
diff --git a/src/schema_compile_amend.c b/src/schema_compile_amend.c
index 8593de8..199dc96 100644
--- a/src/schema_compile_amend.c
+++ b/src/schema_compile_amend.c
@@ -272,7 +272,7 @@
static LY_ERR
lysp_ext_children_dup(const struct ly_ctx *ctx, struct lysp_stmt **child, const struct lysp_stmt *orig_child)
{
- struct lysp_stmt *ch;
+ struct lysp_stmt *ch = NULL;
assert(!*child);
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index c6c9344..561226c 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -616,7 +616,7 @@
{
LY_ARRAY_COUNT_TYPE u, v, w;
const struct lysp_submodule *submod;
- const struct lysp_module *base_pmod;
+ const struct lysp_module *base_pmod = NULL;
const struct lysp_ident *identp = NULL;
const struct lys_module *mod;
const char *base_name;