Skip to content

Commit efa170b

Browse files
committed
data tree BUGFIX uninitialized variable
Fixes #592
1 parent 93e9e1c commit efa170b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tree_data.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5109,6 +5109,7 @@ lyd_dup_attr(struct ly_ctx *ctx, struct lyd_node *parent, struct lyd_attr *attr)
51095109
ret->name = lydict_insert(ctx, attr->name, 0);
51105110
ret->value_str = lydict_insert(ctx, attr->value_str, 0);
51115111
ret->value_type = attr->value_type;
5112+
ret->value_flags = attr->value_flags;
51125113
switch (ret->value_type) {
51135114
case LY_TYPE_BINARY:
51145115
case LY_TYPE_STRING:

0 commit comments

Comments
 (0)