Skip to content

Commit 8760d96

Browse files
committed
tree data new BUGFIX check return value
1 parent 542ceb4 commit 8760d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree_data_new.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ lyd_new_path_(struct lyd_node *parent, const struct ly_ctx *ctx, const struct ly
16351635
if (value && !value_len) {
16361636
value_len = strlen(value);
16371637
}
1638-
lyd_new_val_get_format(options, &format);
1638+
LY_CHECK_GOTO(ret = lyd_new_val_get_format(options, &format), cleanup);
16391639

16401640
/* parse path */
16411641
LY_CHECK_GOTO(ret = ly_path_parse(ctx, NULL, path, strlen(path), 0, LY_PATH_BEGIN_EITHER, LY_PATH_PREFIX_FIRST,

0 commit comments

Comments
 (0)