Skip to content

Commit f718301

Browse files
committed
parser common BUGFIX check return value
1 parent 8e7faa6 commit f718301

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parser_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ lyd_parser_node_insert(const struct lysc_ext_instance *ext, struct lyd_node *par
516516

517517
/* insert */
518518
if (insert_anchor) {
519-
lyd_insert_after(insert_anchor, node);
519+
LY_CHECK_RET(lyd_insert_after(insert_anchor, node));
520520
} else if (ext) {
521521
LY_CHECK_RET(lyplg_ext_insert(parent, node));
522522
} else {

0 commit comments

Comments
 (0)