changeset 374:7f8b00d5ff68 HEAD

mail_tree_lookup_uid_range() didn't return correct seq number if the first UID wasn't found.
author Timo Sirainen <tss@iki.fi>
date Sun, 06 Oct 2002 14:51:28 +0300
parents 5d2298649157
children 285b3ca58cf7
files src/lib-index/mail-tree-redblack.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-tree-redblack.c	Sun Oct 06 14:35:13 2002 +0300
+++ b/src/lib-index/mail-tree-redblack.c	Sun Oct 06 14:51:28 2002 +0300
@@ -658,7 +658,7 @@
 		/* get the next key, make sure it's in range */
 		x = rb_successor(tree, y);
 		if (node[x].key <= last_uid)
-			*seq_r = seq+1;
+			*seq_r = seq;
 		else
 			x = RBNULL;
 	}