mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Fixes initial random values for function arguments.
Thanks to Javor Kliachev for the bugreport.
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user