summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-28 06:17:35 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-28 06:17:35 -0800
commitd864d3cdcccd4e712fad5fdc1a33209b15fa0aab (patch)
treeeb36697c3eb24096070c3f5687463daf83c37932
parent0f2bd5880d083c7cd7a52825d0a5b3276e7245b2 (diff)
downloadtxr-d864d3cdcccd4e712fad5fdc1a33209b15fa0aab.tar.gz
txr-d864d3cdcccd4e712fad5fdc1a33209b15fa0aab.tar.bz2
txr-d864d3cdcccd4e712fad5fdc1a33209b15fa0aab.zip
copy-hash: showstopper: seed must be copied.
* hash.c (copy_hash): Fix failure to initialize seed member in the duplicated hash structure. This regression was introduced along with seeded hashing.
-rw-r--r--hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 5ff3a5a4..0b1f05a3 100644
--- a/hash.c
+++ b/hash.c
@@ -765,6 +765,7 @@ val copy_hash(val existing)
h->table = table;
h->userdata = ex->userdata;
+ h->seed = ex->seed;
h->flags = ex->flags;
h->usecount = 0;
h->hops = ex->hops;