Skip to content

Commit

Permalink
lib-storage: imapc - Ensure search ctx is not NULL
Browse files Browse the repository at this point in the history
Satisfies static analyzers
  • Loading branch information
cmouse authored and mrannanj committed Feb 20, 2018
1 parent 603cac0 commit 75f6ed7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-storage/index/imapc/imapc-search.c
Expand Up @@ -185,6 +185,7 @@ static void imapc_search_callback(const struct imapc_command_reply *reply,
struct mail_search_context *ctx = context;
struct imapc_mailbox *mbox = IMAPC_MAILBOX(ctx->transaction->box);
struct imapc_search_context *ictx = IMAPC_SEARCHCTX(ctx);
i_assert(ictx != NULL);

ictx->finished = TRUE;
if (reply->state == IMAPC_COMMAND_STATE_OK) {
Expand Down

0 comments on commit 75f6ed7

Please sign in to comment.