Skip to content

Commit

Permalink
Issue #21
Browse files Browse the repository at this point in the history
  • Loading branch information
grosjo committed Jul 3, 2019
1 parent fa4ad31 commit 3522a9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fts-backend-xapian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,24 +295,25 @@ static bool fts_backend_xapian_update_set_build_key(struct fts_backend_update_co
i++;
}
f2[k]=0;
std::string f3(f2);
i_free(f2);

switch (key->type)
{
case FTS_BACKEND_BUILD_KEY_HDR:
case FTS_BACKEND_BUILD_KEY_MIME_HDR:
ctx->tbi_isfield=true;
ctx->tbi_field=f2;
ctx->tbi_field=f3;
ctx->tbi_uid=key->uid;
break;
case FTS_BACKEND_BUILD_KEY_BODY_PART:
ctx->tbi_field=f2;
ctx->tbi_field=f3;
ctx->tbi_isfield=false;
ctx->tbi_uid=key->uid;
break;
case FTS_BACKEND_BUILD_KEY_BODY_PART_BINARY:
i_unreached();
}
i_free(f2);

return TRUE;
}
Expand Down

0 comments on commit 3522a9d

Please sign in to comment.