diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-07-26 11:06:08 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-07-26 11:08:59 +0200 |
commit | 4ee39ff2ff78f86ce1ec79a77e22120984452549 (patch) | |
tree | b7b7080d412d5b4495277609454ebc4503ad47f5 | |
parent | 1103b32e830fbf98d9b3e32c0425b9a589773bf8 (diff) |
Fixes initial random values for function arguments.
Thanks to Javor Kliachev for the bugreport.
-rw-r--r-- | filter/config.Y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/config.Y b/filter/config.Y index 2ca03463..7f73b895 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -336,8 +336,8 @@ type: one_decl: type SYM { - struct f_val * val = cfg_alloc(sizeof(struct f_val)); - val->type = $1; + struct f_val * val = cfg_alloc(sizeof(struct f_val)); + val->type = T_VOID; $2 = cf_define_symbol($2, SYM_VARIABLE | $1, val); DBG( "New variable %s type %x\n", $2->name, $1 ); $2->aux2 = NULL; |