aboutsummaryrefslogtreecommitdiffstats
path: root/src/expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-31 13:29:11 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-31 13:29:11 +0400
commit625a7e5e69cf5a7ac85b6a7bc59907a54682765d (patch)
treedaa3e8254a0d39a5f5107f49151029165b0f0217 /src/expressions.c
parent7408d6fd0fc4652ffbc0fa8b13cabf455f8ed0c1 (diff)
downloadrspamd-625a7e5e69cf5a7ac85b6a7bc59907a54682765d.tar.gz
rspamd-625a7e5e69cf5a7ac85b6a7bc59907a54682765d.zip
* Fix order of functions arguments
* Do not try to check non-regexp expressions
Diffstat (limited to 'src/expressions.c')
-rw-r--r--src/expressions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expressions.c b/src/expressions.c
index c028d8476..e09b33ea1 100644
--- a/src/expressions.c
+++ b/src/expressions.c
@@ -402,12 +402,12 @@ parse_expression (memory_pool_t *pool, char *line)
g_strstrip (str);
arg->type = EXPRESSION_ARGUMENT_NORMAL;
arg->data = str;
- func->args = g_list_prepend (func->args, arg);
+ func->args = g_list_append (func->args, arg);
}
else {
arg->type = EXPRESSION_ARGUMENT_FUNCTION;
arg->data = old;
- func->args = g_list_prepend (func->args, arg);
+ func->args = g_list_append (func->args, arg);
}
/* Pop function */
if (*p == ')') {