From 4cd0a6040a0992030af6aaa439928d525c860aa2 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Mon, 31 May 2021 11:11:58 +0200 Subject: [PATCH] data tree BUGFIX always use dynamic value Fixes #1598 --- src/tree_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree_data.c b/src/tree_data.c index c864d7b50..c7b7e537b 100644 --- a/src/tree_data.c +++ b/src/tree_data.c @@ -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 = ""; }