commit | 39dbf350fb0ebbf388ef3259dc8bf7f83edbacb3 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu May 21 10:08:59 2020 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu May 21 10:09:11 2020 +0200 |
tree | 8853aa5ae78b1ca96fcc005ae35c37528dc5e813 | |
parent | 62ed12d644cda09579f8202a177c113ba937b6eb [diff] [blame] |
xpath BUGFIX missing iterator increment
diff --git a/src/xpath.c b/src/xpath.c index 92783be..6f7937f 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -6565,7 +6565,7 @@ orig_pos = 0; orig_size = set->used; orig_parent = NULL; - for (i = 0; i < set->used; ) { + for (i = 0; i < set->used; ++i) { set_init(&set2, set); set_insert_node(&set2, set->val.nodes[i].node, set->val.nodes[i].pos, set->val.nodes[i].type, 0); /* remember the node context position for position() and context size for last(),