Skip to content

Commit 4bbb2e5

Browse files
committed
tree data new BUGFIX avoid inval arg error
1 parent 322c9d1 commit 4bbb2e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tree_data_new.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1763,7 +1763,7 @@ lyd_new_path_create(struct lyd_node *parent, const struct ly_ctx *ctx, const str
17631763
r = LY_ENOT;
17641764
} else {
17651765
/* validate value */
1766-
r = ly_value_validate(NULL, schema, value, value_size_bits, format, NULL, 0, ext);
1766+
r = ly_value_validate(NULL, schema, value ? value : "", value_size_bits, format, NULL, 0, ext);
17671767
}
17681768
if (r && (r != LY_EINCOMPLETE)) {
17691769
/* creating opaque leaf */

0 commit comments

Comments
 (0)