changeset 6077:2378d992c49b HEAD

Another crashfix after mail_index_mark_corrupted()
author Timo Sirainen <tss@iki.fi>
date Wed, 18 Jul 2007 08:51:00 +0300
parents f1f83c90fd3d
children 39e1a81be92c
files src/lib-index/mail-index-map.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-map.c	Wed Jul 18 08:39:01 2007 +0300
+++ b/src/lib-index/mail-index-map.c	Wed Jul 18 08:51:00 2007 +0300
@@ -762,7 +762,7 @@
 
 		/* if we're creating the index file, we don't have any
 		   logs yet */
-		if (index->log->head != NULL) {
+		if (index->log->head != NULL && index->indexid != 0) {
 			/* and update the map with the latest changes from
 			   transaction log */
 			ret = mail_index_sync_map(&index->map, type, TRUE);