fixed hash deletion
[swftools.git] / 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;