aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-29 15:17:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-29 15:17:57 +0100
commitd08dd10cf250bb86ee0bfe6e4c5d9414cd98711f (patch)
treeb0d3fc1c4962495a3b070a9161b475688e1e2b60 /src/libstat/stat_process.c
parent8befc1e63c658c0d8eed73f382e0a3160ad18a4a (diff)
downloadrspamd-d08dd10cf250bb86ee0bfe6e4c5d9414cd98711f.tar.gz
rspamd-d08dd10cf250bb86ee0bfe6e4c5d9414cd98711f.zip
Use binary flags for part flags.
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 8bea1baea..e4e4c692b 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -296,14 +296,14 @@ rspamd_stat_process_tokenize (struct rspamd_tokenizer_config *cf,
while (cur != NULL) {
part = (struct mime_text_part *)cur->data;
- if (!part->is_empty && part->words != NULL) {
+ if (!IS_PART_EMPTY (part) && part->words != NULL) {
if (compat) {
tok->tokenizer->tokenize_func (cf, task->task_pool,
- part->words, tok->tokens, part->is_utf);
+ part->words, tok->tokens, IS_PART_UTF (part));
}
else {
tok->tokenizer->tokenize_func (cf, task->task_pool,
- part->normalized_words, tok->tokens, part->is_utf);
+ part->normalized_words, tok->tokens, IS_PART_UTF (part));
}
}