From 153afec3db7438e41baaed4df4aa1bc79ee785a5 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Sun, 8 Mar 2009 16:12:45 +0100 Subject: [PATCH] fixed hash deletion --- lib/q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/q.c b/lib/q.c index 976684e..942cfbb 100644 --- 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; -- 1.7.10.4