Skip to content

Commit a343e1f

Browse files
committed
xpath CHANGE explicitly set empty set type
1 parent 3916aa9 commit a343e1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/xpath.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8469,6 +8469,7 @@ lyxp_eval(const char *expr, const struct lyd_node *cur_node, enum lyxp_node_type
84698469

84708470
exp_idx = 0;
84718471
memset(set, 0, sizeof *set);
8472+
set->type = LYXP_SET_EMPTY;
84728473
if (cur_node) {
84738474
set_insert_node(set, (struct lyd_node *)cur_node, 0, cur_node_type, 0);
84748475
}

0 commit comments

Comments
 (0)