libyang MAINTENANCE unitialized var warnings
False positives.
diff --git a/src/plugins_types/decimal64.c b/src/plugins_types/decimal64.c
index 0eb01a0..8b1e2cd 100644
--- a/src/plugins_types/decimal64.c
+++ b/src/plugins_types/decimal64.c
@@ -90,7 +90,7 @@
{
struct lysc_type_dec *type_dec = (struct lysc_type_dec *)type;
LY_ERR ret = LY_SUCCESS;
- int64_t num;
+ int64_t num = 0;
char *canon;
/* init storage */
diff --git a/src/schema_compile_node.c b/src/schema_compile_node.c
index 1405b8c..5d2f0ae 100644
--- a/src/schema_compile_node.c
+++ b/src/schema_compile_node.c
@@ -2582,7 +2582,7 @@
}
} else {
/* top-level element */
- struct lysc_node **list;
+ struct lysc_node **list = NULL;
if (ctx->ext) {
lyplg_ext_get_storage_p(ctx->ext, LY_STMT_DATA_NODE_MASK, (uint64_t *)&list);
diff --git a/src/tree_schema_common.c b/src/tree_schema_common.c
index 803009a..dcfb096 100644
--- a/src/tree_schema_common.c
+++ b/src/tree_schema_common.c
@@ -768,7 +768,7 @@
{
struct ly_in *in;
char *filepath = NULL;
- LYS_INFORMAT format;
+ LYS_INFORMAT format = 0;
void *mod = NULL;
LY_ERR ret = LY_SUCCESS;
struct lysp_load_module_check_data check_data = {0};