commit | 3cf8fbf8be29d497741bbcb8f61c49fac8cc11d2 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed May 27 15:21:21 2020 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed May 27 15:21:21 2020 +0200 |
tree | cdb9e3efc9e5474d339549d4d1f8b87d82db3ab5 | |
parent | 40a00080d53f520bb959e8fee515d785d6f3e4e6 [diff] [blame] |
xpath BUGFIX sorting empty sets
diff --git a/src/xpath.c b/src/xpath.c index 5eb0998..f39015d 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -1544,7 +1544,7 @@ struct lyxp_set_hash_node hnode; uint64_t hash; - if ((set->type != LYXP_SET_NODE_SET) || (set->used == 1)) { + if ((set->type != LYXP_SET_NODE_SET) || (set->used < 2)) { return 0; }