From 6be662d917822e9a23b0abd613e170c1d42bfdbe Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 15 May 2000 12:07:09 +0000 Subject: [PATCH] Use new eval mechanism for testing filters. --- filter/filter.c | 2 +- filter/test.conf | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/filter/filter.c b/filter/filter.c index c9350c96..84680c66 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -673,7 +673,7 @@ f_eval_int(struct f_inst *expr) f_rte = NULL; f_rte_old = NULL; f_rta_copy = NULL; - f_pool = NULL; + f_pool = cfg_mem; res = interpret(expr); if (res.type != T_INT) cf_error("Integer expression expected"); diff --git a/filter/test.conf b/filter/test.conf index e03f5914..37cff13e 100644 --- a/filter/test.conf +++ b/filter/test.conf @@ -141,3 +141,5 @@ int j; accept "ok I take that"; } + +eval __startup(); \ No newline at end of file