Skip to content

Commit 093f4b4

Browse files
committed
lib REFACTOR uninit var false positives
1 parent 830a13c commit 093f4b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plugins_types/union.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ union_store_type(const struct ly_ctx *ctx, struct lysc_type_union *type_u, uint3
223223
ly_bool dynamic = 0;
224224
LY_VALUE_FORMAT format;
225225
void *prefix_data;
226-
uint32_t value_size_bits, opts = 0, ti;
226+
uint32_t value_size_bits = 0, opts = 0, ti;
227227
struct lyplg_type *type_plg;
228228

229229
*err = NULL;

src/xpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ static LY_ERR
459459
cast_string_recursive(const struct lyd_node *node, struct lyxp_set *set, uint32_t indent, char **str, uint32_t *used,
460460
uint32_t *size)
461461
{
462-
char *buf, *line, *ptr = NULL;
462+
char *buf = NULL, *line, *ptr = NULL;
463463
const char *value_str;
464464
uint16_t nodetype;
465465
const struct lyd_node *child;

0 commit comments

Comments
 (0)