Skip to content

Commit

Permalink
Crating a new opaq leaflist node the value isn't populated. The value…
Browse files Browse the repository at this point in the history
… is passed to lyd_create_opaq as prefix parameter.
  • Loading branch information
lucoliva committed Mar 4, 2024
1 parent c03945b commit 79bc29a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tree_data_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -1727,8 +1727,8 @@ lyd_new_path_(struct lyd_node *parent, const struct ly_ctx *ctx, const struct ly
}
if (r && (r != LY_EINCOMPLETE)) {
/* creating opaque leaf-list */
LY_CHECK_GOTO(ret = lyd_create_opaq(ctx, schema->name, strlen(schema->name), value, value_len,
schema->module->name, strlen(schema->module->name), NULL, 0, NULL, format, NULL,
LY_CHECK_GOTO(ret = lyd_create_opaq(ctx, schema->name, strlen(schema->name), NULL, 0,
schema->module->name, strlen(schema->module->name), value, value_len, NULL, format, NULL,
LYD_NODEHINT_LEAFLIST, &node), cleanup);
break;
}
Expand Down Expand Up @@ -1764,8 +1764,8 @@ lyd_new_path_(struct lyd_node *parent, const struct ly_ctx *ctx, const struct ly
}
if (r && (r != LY_EINCOMPLETE)) {
/* creating opaque leaf */
LY_CHECK_GOTO(ret = lyd_create_opaq(ctx, schema->name, strlen(schema->name), value, value_len,
schema->module->name, strlen(schema->module->name), NULL, 0, NULL, format, NULL, 0, &node),
LY_CHECK_GOTO(ret = lyd_create_opaq(ctx, schema->name, strlen(schema->name), NULL, 0,
schema->module->name, strlen(schema->module->name), value, value_len, NULL, format, NULL, 0, &node),
cleanup);
break;
}
Expand Down

0 comments on commit 79bc29a

Please sign in to comment.