[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.74,
1.75
cras at dovecot.org
cras at dovecot.org
Mon Dec 20 09:49:07 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv25506
Modified Files:
mail-index-sync-update.c
Log Message:
Again, don't crash if there are no expunge handlers..
Index: mail-index-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- mail-index-sync-update.c 7 Dec 2004 03:59:20 -0000 1.74
+++ mail-index-sync-update.c 20 Dec 2004 07:49:04 -0000 1.75
@@ -108,10 +108,11 @@
if (seq1 == 0)
return 1;
- if (ctx->type != MAIL_INDEX_SYNC_HANDLER_VIEW) {
- if (!ctx->expunge_handlers_set)
- mail_index_sync_init_expunge_handlers(ctx);
+ if (ctx->type != MAIL_INDEX_SYNC_HANDLER_VIEW &&
+ !ctx->expunge_handlers_set)
+ mail_index_sync_init_expunge_handlers(ctx);
+ if (ctx->type != MAIL_INDEX_SYNC_HANDLER_VIEW) {
expunge_handlers =
buffer_get_modifyable_data(ctx->expunge_handlers,
&expunge_handlers_count);
More information about the dovecot-cvs
mailing list