diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-01-28 06:17:35 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-01-28 06:17:35 -0800 |
commit | d864d3cdcccd4e712fad5fdc1a33209b15fa0aab (patch) | |
tree | eb36697c3eb24096070c3f5687463daf83c37932 /hash.c | |
parent | 0f2bd5880d083c7cd7a52825d0a5b3276e7245b2 (diff) | |
download | txr-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.
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |