diff options
Diffstat (limited to 'filter/config.Y')
-rw-r--r-- | filter/config.Y | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/filter/config.Y b/filter/config.Y index fcbee714..1af5649c 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -172,7 +172,14 @@ function_params: function_body: decls '{' cmds '}' { - $$ = $3; + if ($1) { + /* Prepend instruction to clear local variables */ + $$ = f_new_inst(); + $$->code = P('c','v'); + $$->a1.p = $1; + $$->next = $3; + } else + $$ = $3; } ; |