diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-17 21:04:29 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-10-17 21:04:29 +0300 |
commit | bb783aa50c87907a2012d6979b47e10c9189892e (patch) | |
tree | 1f02a3072cc00f23047b07dc6728aa7d6e02c10b /src/tokenizers | |
parent | df46d970cdea50a41ae54d9125d61458c59486d7 (diff) | |
download | rspamd-bb783aa50c87907a2012d6979b47e10c9189892e.tar.gz rspamd-bb783aa50c87907a2012d6979b47e10c9189892e.zip |
* Add configuration utils for kvstorage
Diffstat (limited to 'src/tokenizers')
-rw-r--r-- | src/tokenizers/tokenizers.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tokenizers/tokenizers.c b/src/tokenizers/tokenizers.c index 902245e7d..2eb11eff8 100644 --- a/src/tokenizers/tokenizers.c +++ b/src/tokenizers/tokenizers.c @@ -256,7 +256,6 @@ tokenize_subject (struct worker_task *task, GTree ** tree) { f_str_t subject; const gchar *sub; - token_node_t *new = NULL; struct tokenizer *osb_tokenizer; if (*tree == NULL) { @@ -268,13 +267,11 @@ tokenize_subject (struct worker_task *task, GTree ** tree) /* Try to use pre-defined subject */ if (task->subject != NULL) { - new = memory_pool_alloc (task->task_pool, sizeof (token_node_t)); subject.begin = task->subject; subject.len = strlen (task->subject); osb_tokenizer->tokenize_func (osb_tokenizer, task->task_pool, &subject, tree, FALSE, TRUE, NULL); } if ((sub = g_mime_message_get_subject (task->message)) != NULL) { - new = memory_pool_alloc (task->task_pool, sizeof (token_node_t)); subject.begin = (gchar *)sub; subject.len = strlen (sub); osb_tokenizer->tokenize_func (osb_tokenizer, task->task_pool, &subject, tree, FALSE, TRUE, NULL); |