changeset 9419:e20921f71bd0 HEAD

lib-index: With >1 expunge handlers deinit was called with wrong sync_context. Currently there was only one expunge handler so this wasn't a real problem.
author Timo Sirainen <tss@iki.fi>
date Thu, 08 Oct 2009 11:21:26 -0400
parents f7f0bff8438a
children 352eab3d6ade
files src/lib-index/mail-index-sync-ext.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync-ext.c	Thu Oct 08 11:15:07 2009 -0400
+++ b/src/lib-index/mail-index-sync-ext.c	Thu Oct 08 11:21:26 2009 -0400
@@ -66,8 +66,8 @@
 
 	eh = array_get(&ctx->expunge_handlers, &count);
 	for (i = 0; i < count; i++) {
-		if (eh->sync_context != NULL) {
-			eh[i].handler(ctx, 0, NULL, eh->sync_context,
+		if (eh[i].sync_context != NULL) {
+			eh[i].handler(ctx, 0, NULL, eh[i].sync_context,
 				      eh[i].context);
 		}
 	}