]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
indexes: Crashfix to error handling.
authorTimo Sirainen <tss@iki.fi>
Tue, 10 Mar 2009 00:17:52 +0000 (20:17 -0400)
committerTimo Sirainen <tss@iki.fi>
Tue, 10 Mar 2009 00:17:52 +0000 (20:17 -0400)
--HG--
branch : HEAD

src/lib-index/mail-index-view-sync.c

index ebba0963b062cf72e4fcfc1399f9a45f630f231d..80c1ff1a2ca80fcf2d7e47ce6a2f74f8e1426452 100644 (file)
@@ -918,7 +918,7 @@ int mail_index_view_sync_commit(struct mail_index_view_sync_ctx **_ctx,
                view->inconsistent = TRUE;
                ret = -1;
        }
-       if (ctx->sync_map_ctx.view != NULL)
+       if (ctx->sync_map_ctx.modseq_ctx != NULL)
                mail_index_modseq_sync_end(&ctx->sync_map_ctx.modseq_ctx);
 
        if (ctx->sync_new_map != NULL) {