aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-18 20:12:18 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-18 20:12:18 +0400
commit4a51b80e3ef6573850007f5f83fb82370e0b8094 (patch)
tree347cd649b53c8e03d8d3fc869d79222c6dcddf8f
parent2a21701f6c0f80d2a56639e7e2c156ed7179f0dd (diff)
downloadrspamd-4a51b80e3ef6573850007f5f83fb82370e0b8094.tar.gz
rspamd-4a51b80e3ef6573850007f5f83fb82370e0b8094.zip
* Fix rspamd functions registration
-rw-r--r--src/expressions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c
index eecf68986..3f7a5d984 100644
--- a/src/expressions.c
+++ b/src/expressions.c
@@ -809,7 +809,7 @@ register_expression_function (const char *name, rspamd_internal_func_t func)
functions_number ++;
new = g_new (struct _fl, functions_number);
- memcpy (new, rspamd_functions_list, (functions_number - 1) * sizeof (struct _fl));
+ memcpy (new, list_ptr, (functions_number - 1) * sizeof (struct _fl));
if (list_allocated) {
g_free (list_ptr);
}