aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-09 17:54:14 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-08-09 17:54:14 +0100
commitded21373d56662d054748ab5eeed30410c49344a (patch)
tree4da538b1e5fa7e1c0c9fd9a9189ac350fb224e90 /test
parent07011527b93630d0326e26d5b04eea07a7cc5a97 (diff)
downloadrspamd-ded21373d56662d054748ab5eeed30410c49344a.tar.gz
rspamd-ded21373d56662d054748ab5eeed30410c49344a.zip
Fix some rcl parser errors found by test.
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_rcl_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/rspamd_rcl_test.c b/test/rspamd_rcl_test.c
index 20dcc8c24..01b3ba835 100644
--- a/test/rspamd_rcl_test.c
+++ b/test/rspamd_rcl_test.c
@@ -59,11 +59,10 @@ rspamd_rcl_test_func (void)
const gchar **cur;
GError *err = NULL;
- parser = rspamd_cl_parser_new ();
- g_assert (parser != NULL);
-
cur = rcl_test_valid;
while (*cur != NULL) {
+ parser = rspamd_cl_parser_new ();
+ g_assert (parser != NULL);
rspamd_cl_parser_add_chunk (parser, *cur, strlen (*cur), &err);
g_assert_no_error (err);
cur ++;