Skip to content

Commit

Permalink
lib-fts: fts-tokenizer-address - Cleanup NUL handling in parent_data
Browse files Browse the repository at this point in the history
The end result is anyway that the token will be truncated at the first NUL.
This change just makes the code a bit more understandable on where the
truncation will happen.
  • Loading branch information
sirainen committed Aug 30, 2018
1 parent b608e0b commit 265bdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-fts/fts-tokenizer-address.c
Expand Up @@ -216,7 +216,7 @@ fts_tokenizer_address_update_parent(struct email_address_fts_tokenizer *tok,
const unsigned char *data, size_t size)
{
if (tok->tokenizer.parent != NULL)
str_append_n(tok->parent_data, data, size);
str_append_data(tok->parent_data, data, size);
}

static void fts_tokenizer_email_address_reset(struct fts_tokenizer *_tok)
Expand Down

0 comments on commit 265bdb7

Please sign in to comment.