]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes initial random values for function arguments.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 26 Jul 2013 09:06:08 +0000 (11:06 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 26 Jul 2013 09:08:59 +0000 (11:08 +0200)
Thanks to Javor Kliachev for the bugreport.

filter/config.Y

index 2ca0346329b7a8715df4826ac7e6fdd6133b88ce..7f73b89558267c39228b14182b7b653baed73df9 100644 (file)
@@ -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;