summaryrefslogtreecommitdiffstats
path: root/src/filter.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-08-02 14:28:23 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-08-02 14:28:23 +0400
commit819f96d75f73f0a2bcd2ccb064c224520c73f397 (patch)
tree463a7bc6be0e0001ae631f696b618d8e08f056f5 /src/filter.c
parent2efbf8d0cbe6c3cc3fa97a2c80d0887a87b5a2a5 (diff)
downloadrspamd-819f96d75f73f0a2bcd2ccb064c224520c73f397.tar.gz
rspamd-819f96d75f73f0a2bcd2ccb064c224520c73f397.zip
* Fix inserting composite symbol
* Fix output of log line
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/filter.c b/src/filter.c
index 83868e9b9..f1851d295 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -315,7 +315,6 @@ composites_foreach_callback (gpointer key, gpointer value, void *data)
GQueue *stack;
GList *symbols = NULL, *s;
gsize cur, op1, op2;
- struct symbol *res;
stack = g_queue_new ();
@@ -369,10 +368,7 @@ composites_foreach_callback (gpointer key, gpointer value, void *data)
s = g_list_next (s);
}
/* Add new symbol */
- res = memory_pool_alloc (cd->task->task_pool, sizeof (struct symbol));
- res->score = 1.;
- res->options = NULL;
- g_hash_table_insert (cd->metric_res->symbols, key, res);
+ insert_result (cd->task, key, 1.0, NULL);
}
}