dovecot-1.2: dbox rebuild: Don't crash if nothing was previously...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jan 21 19:30:18 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/1cea5aa6915c
changeset: 8668:1cea5aa6915c
user: Timo Sirainen <tss at iki.fi>
date: Wed Jan 21 12:30:15 2009 -0500
description:
dbox rebuild: Don't crash if nothing was previously in cache.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/dbox/dbox-sync-rebuild.c | 2 +-
diffs (12 lines):
diff -r d4376328f8c0 -r 1cea5aa6915c src/lib-storage/index/dbox/dbox-sync-rebuild.c
--- a/src/lib-storage/index/dbox/dbox-sync-rebuild.c Tue Jan 20 17:36:50 2009 -0500
+++ b/src/lib-storage/index/dbox/dbox-sync-rebuild.c Wed Jan 21 12:30:15 2009 -0500
@@ -62,7 +62,7 @@ dbox_sync_index_copy_cache(struct dbox_s
return;
if (!mail_index_ext_get_reset_id(ctx->view, map, ctx->cache_ext_id,
- &reset_id))
+ &reset_id) || reset_id == 0)
return;
if (!ctx->cache_used) {
More information about the dovecot-cvs
mailing list