From 4ee39ff2ff78f86ce1ec79a77e22120984452549 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 26 Jul 2013 11:06:08 +0200 Subject: [PATCH] Fixes initial random values for function arguments. Thanks to Javor Kliachev for the bugreport. --- filter/config.Y | 4 ++-- 1 file 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;