commit | 4f07c3e126b958e49f7eedbd658685a1bc0937cc | [log] [tgz] |
---|---|---|
author | aPiecek <piecek@cesnet.cz> | Fri Jun 11 10:53:07 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Jun 11 11:17:34 2021 +0200 |
tree | 265182a1469c156ed3b337eeea88b98c96f370d3 | |
parent | 74515d09b67079a17f3bb209c7872092103ec615 [diff] [blame] |
hash table BUGFIX key_part with zero length Now dict_hash_multi has an effect, even if the key has zero length.
diff --git a/src/hash_table.c b/src/hash_table.c index c74ced7..fecdd5c 100644 --- a/src/hash_table.c +++ b/src/hash_table.c
@@ -102,7 +102,7 @@ { uint32_t i; - if (key_part) { + if (key_part && len) { for (i = 0; i < len; ++i) { hash += key_part[i]; hash += (hash << 10);