summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--lib.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 63434df7..9da05664 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2012-02-22 Kaz Kylheku <kaz@kylheku.com>
+ * lib.c (init): Hash bugfix: added missing call to hash_init.
+ Previously this function did nothing, but now it interns
+ some important symbols.
+
+2012-02-22 Kaz Kylheku <kaz@kylheku.com>
+
* hash.c (remhash): Rewrote buggy function.
It was decrementing the hash count without checking that
something was deleted from the chain. The deletion was done
diff --git a/lib.c b/lib.c
index 66f123db..35395a7c 100644
--- a/lib.c
+++ b/lib.c
@@ -4204,6 +4204,7 @@ void init(const wchar_t *pn, mem_t *(*oom)(mem_t *, size_t),
stream_init();
eval_init();
filter_init();
+ hash_init();
gc_state(gc_save);
}