Skip to content

Commit 981094a

Browse files
committed
parser BUGFIX check if pointer is set
Fixes #2464
1 parent 88365c0 commit 981094a

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
@@ -481,7 +481,7 @@ lyd_parser_node_free(struct lyd_node **first_p, struct lyd_node **node)
481481
return;
482482
}
483483

484-
if (*first_p && !(*first_p)->parent && (*first_p == *node)) {
484+
if (first_p && *first_p && !(*first_p)->parent && (*first_p == *node)) {
485485
*first_p = (*first_p)->next;
486486
}
487487

0 commit comments

Comments
 (0)