commit | ef71b395fbf62af3c4436a5ffa9adf6fafc4c3c7 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Aug 16 09:45:23 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Aug 16 09:45:23 2023 +0200 |
tree | 04cb832471040f25f183e3bc73377064954bffb6 | |
parent | 097a1d2b680a20f2bfc09d8305636c360d8b55ae [diff] |
xpath BUGFIX proper set clean
diff --git a/src/xpath.c b/src/xpath.c index fcfec99..459e618 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -5647,8 +5647,7 @@ set_scnode_clear_ctx(set, LYXP_SET_SCNODE_ATOM_NODE); LY_CHECK_RET(lyxp_set_scnode_insert_node(set, NULL, set->root_type, LYXP_AXIS_SELF, NULL)); } else { - set->type = LYXP_SET_NODE_SET; - set->used = 0; + lyxp_set_free_content(set); set_insert_node(set, NULL, 0, set->root_type, 0); set->non_child_axis = 0; }