From 1a7c16f88de068a704828f47154c25fcbf30c292 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 3 Dec 2003 20:14:26 +0200 Subject: [PATCH] bugfix --HG-- branch : HEAD --- src/lib/hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/hash.c b/src/lib/hash.c index e1f20033d7..fad0f3c18e 100644 --- a/src/lib/hash.c +++ b/src/lib/hash.c @@ -341,14 +341,13 @@ static struct hash_node *hash_iterate_next(struct hash_iterate_context *ctx, struct hash_node *node) { do { + node = node->next; if (node == NULL) { if (++ctx->pos == ctx->table->size) { ctx->pos--; return NULL; } node = &ctx->table->nodes[ctx->pos]; - } else { - node = node->next; } } while (node->key == NULL); -- 2.47.3