From: Aki Tuomi Date: Mon, 19 Sep 2016 09:27:16 +0000 (+0300) Subject: fts-plugin: Remove NULL assert X-Git-Tag: 2.3.0.rc1~3006 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fcde0841df86e1260770a356ad74c5c128e8fc1;p=thirdparty%2Fdovecot%2Fcore.git fts-plugin: Remove NULL assert fts_backend_update_deinit will set box to NULL and call update_set_mailbox then. NULL check needs to be done in backends. --- diff --git a/src/plugins/fts/fts-api.c b/src/plugins/fts/fts-api.c index a12c1903d3..5eec770bc8 100644 --- a/src/plugins/fts/fts-api.c +++ b/src/plugins/fts/fts-api.c @@ -125,7 +125,6 @@ static void fts_backend_set_cur_mailbox(struct fts_backend_update_context *ctx) { fts_backend_update_unset_build_key(ctx); if (ctx->backend_box != ctx->cur_box) { - i_assert(ctx->cur_box != NULL); ctx->backend->v.update_set_mailbox(ctx, ctx->cur_box); ctx->backend_box = ctx->cur_box; }