Commit 4ee39ff2 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes initial random values for function arguments.

Thanks to Javor Kliachev for the bugreport.
parent 1103b32e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment