fixed hash deletion
authorMatthias Kramm <kramm@quiss.org>
Sun, 8 Mar 2009 15:12:45 +0000 (16:12 +0100)
committerMatthias Kramm <kramm@quiss.org>
Sun, 8 Mar 2009 15:12:45 +0000 (16:12 +0100)
lib/q.c

diff --git a/lib/q.c b/lib/q.c
index 976684e..942cfbb 100644 (file)
--- a/lib/q.c
+++ b/lib/q.c
@@ -933,7 +933,7 @@ char dict_del(dict_t*h, const void*key)
             memset(e, 0, sizeof(dictentry_t));
             rfx_free(e);
             if(e == head) {
-                h->slots[hash] = 0;
+                h->slots[hash] = next;
             } else {
                 assert(prev);
                 prev->next = next;