[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.38, 1.39

cras at dovecot.org cras at dovecot.org
Fri Sep 3 23:00:52 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv28023/lib-index

Modified Files:
	mail-index-sync-update.c 
Log Message:
fix



Index: mail-index-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- mail-index-sync-update.c	31 Jul 2004 04:35:06 -0000	1.38
+++ mail-index-sync-update.c	3 Sep 2004 20:00:49 -0000	1.39
@@ -328,6 +328,7 @@
 	if (mail_index_map(index, TRUE) <= 0)
 		return -1;
 
+	map = index->map;
 	map->hdr_copy = hdr;
 	map->hdr = &map->hdr_copy;
 	map->records_count = map->hdr->messages_count;
@@ -458,10 +459,11 @@
 			}
 			count = (hdr->size - sizeof(*append_hdr)) /
 				append_hdr->record_size;
-			if (mail_index_grow(index, view->map, count) < 0) {
+			if (mail_index_grow(index, map, count) < 0) {
 				ret = -1;
 				break;
 			}
+			map = index->map;
 		}
 
 		if (mail_transaction_map(index, hdr, data,



More information about the dovecot-cvs mailing list