Skip to content

Commit d84b813

Browse files
committed
libyang REFACTOR uninit var false positives
1 parent 8d4efca commit d84b813

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/schema_compile_amend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ lys_precompile_uses_augments_refines(struct lysc_ctx *ctx, struct lysp_node_uses
272272
static LY_ERR
273273
lysp_ext_children_dup(const struct ly_ctx *ctx, struct lysp_stmt **child, const struct lysp_stmt *orig_child)
274274
{
275-
struct lysp_stmt *ch;
275+
struct lysp_stmt *ch = NULL;
276276

277277
assert(!*child);
278278

src/tree_schema_free.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ lysc_ident_derived_unlink(const struct lysc_ident *ident)
616616
{
617617
LY_ARRAY_COUNT_TYPE u, v, w;
618618
const struct lysp_submodule *submod;
619-
const struct lysp_module *base_pmod;
619+
const struct lysp_module *base_pmod = NULL;
620620
const struct lysp_ident *identp = NULL;
621621
const struct lys_module *mod;
622622
const char *base_name;

0 commit comments

Comments
 (0)