diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-10-04 19:55:11 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-10-04 20:10:06 +0200 |
commit | 0d18f3f265021547668510855eacc1b4359feb18 (patch) | |
tree | bdeb865ea57d9b8c4177d2b2ba084e2d087188a8 | |
parent | 35456c9b33fc6463114090d1850cfc459a0b6599 (diff) |
Fixes scope of filter symbols.
-rw-r--r-- | filter/config.Y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/filter/config.Y b/filter/config.Y index 0140c0c5..3b79816b 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -56,8 +56,9 @@ CF_GRAMMAR CF_ADDTO(conf, filter_def) filter_def: - FILTER SYM { cf_push_scope( $2 ); } filter_body { - $2 = cf_define_symbol($2, SYM_FILTER, $4); + FILTER SYM { $2 = cf_define_symbol($2, SYM_FILTER, NULL); cf_push_scope( $2 ); } + filter_body { + $2->def = $4; $4->name = $2->name; DBG( "We have new filter defined (%s)\n", $2->name ); cf_pop_scope(); |