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);