libyang MAINTENANCE uninitializes variables in optimized code
Silent (probably false positive, but who knows with optimizations)
compiler's warnings (mostly) about uninitialized variables when being
compiled as Release build type.
diff --git a/src/path.c b/src/path.c
index 7086a97..a64e668 100644
--- a/src/path.c
+++ b/src/path.c
@@ -451,7 +451,7 @@
{
struct ly_path_predicate *p;
const struct lysc_node *key;
- const struct lys_module *mod;
+ const struct lys_module *mod = NULL;
const char *name;
size_t name_len, key_count;
@@ -725,7 +725,7 @@
{
LY_ERR ret = LY_SUCCESS;
uint16_t tok_idx = 0;
- const struct lys_module *mod;
+ const struct lys_module *mod = NULL;
const struct lysc_node *node2, *cur_node, *op;
struct ly_path *p = NULL;
uint32_t getnext_opts;