[dovecot-cvs] dovecot/src/lib hash.c,1.20,1.21
cras at procontrol.fi
cras at procontrol.fi
Wed Dec 3 20:14:28 EET 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv13046
Modified Files:
hash.c
Log Message:
bugfix
Index: hash.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/hash.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- hash.c 3 Dec 2003 13:16:29 -0000 1.20
+++ hash.c 3 Dec 2003 18:14:26 -0000 1.21
@@ -341,14 +341,13 @@
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);
More information about the dovecot-cvs
mailing list