Skip to content

Commit

Permalink
data tree BUGFIX always use dynamic value
Browse files Browse the repository at this point in the history
Fixes #1598
  • Loading branch information
michalvasko committed May 31, 2021
1 parent cebbae5 commit 4cd0a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ lyd_create_opaq(const struct ly_ctx *ctx, const char *name, size_t name_len, con

assert(ctx && name && name_len && format);

if (!value_len) {
if (!value_len && (!dynamic || !*dynamic)) {
value = "";
}

Expand Down

0 comments on commit 4cd0a60

Please sign in to comment.