changeset 2902:1022caefca74 HEAD

mail_index_write_base_header() doesn't crash anymore if index mapping is in memory. Recent changes broke it.
author Timo Sirainen <tss@iki.fi>
date Mon, 29 Nov 2004 00:45:39 +0200
parents 872172ffd005
children bd8f47bda4c7
files src/lib-index/mail-index.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Sun Nov 28 02:04:29 2004 +0200
+++ b/src/lib-index/mail-index.c	Mon Nov 29 00:45:39 2004 +0200
@@ -944,8 +944,8 @@
 			return -1;
 		}
 
+		index->map->hdr = *hdr;
 		buffer_write(index->map->hdr_copy_buf, 0, hdr, hdr_size);
-		i_assert(index->hdr == index->map->hdr_copy_buf->data);
 	}
 
 	return 0;