Skip to content

Commit

Permalink
libyang MAINTENANCE unitialized var warnings
Browse files Browse the repository at this point in the history
False positives.
  • Loading branch information
michalvasko committed Aug 15, 2024
1 parent 34a042c commit 4502ed2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins_types/decimal64.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ lyplg_type_store_decimal64(const struct ly_ctx *ctx, const struct lysc_type *typ
{
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 */
Expand Down
2 changes: 1 addition & 1 deletion src/schema_compile_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -2582,7 +2582,7 @@ lys_compile_node_connect(struct lysc_ctx *ctx, struct lysc_node *parent, struct
}
} 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);
Expand Down
2 changes: 1 addition & 1 deletion src/tree_schema_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ lys_parse_localfile(struct ly_ctx *ctx, const char *name, const char *revision,
{
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};
Expand Down

0 comments on commit 4502ed2

Please sign in to comment.