Mercurial > dovecot > core-2.2
changeset 2450:ace62daa7abd HEAD
Crashfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 22 Aug 2004 13:13:05 +0300 |
parents | 1543762353aa |
children | f6fef42f01b9 |
files | src/lib-index/mail-transaction-log.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.c Sun Aug 22 13:05:07 2004 +0300 +++ b/src/lib-index/mail-transaction-log.c Sun Aug 22 13:13:05 2004 +0300 @@ -477,7 +477,8 @@ return NULL; } - if (file->hdr.file_seq == log->index->map->log_file_seq && + if (log->index->map != NULL && + file->hdr.file_seq == log->index->map->log_file_seq && log->index->map->log_file_offset != 0) { /* we can get a valid log offset from index file. initialize sync_offset from it so we don't have to read the whole log