From: Ondrej Zajicek Date: Fri, 26 Jul 2013 09:06:08 +0000 (+0200) Subject: Fixes initial random values for function arguments. X-Git-Tag: v1.3.11~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ee39ff2ff78f86ce1ec79a77e22120984452549;p=thirdparty%2Fbird.git Fixes initial random values for function arguments. Thanks to Javor Kliachev for the bugreport. --- diff --git a/filter/config.Y b/filter/config.Y index 2ca034632..7f73b8955 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;