Revision 9607536d proto/rip/config.Y

View differences:

proto/rip/config.Y
93 93
void
94 94
rip_dev_add_iface(char *n)
95 95
{
96
  struct rip_patt *k = cfg_alloc(sizeof(struct rip_patt));
97

  
96
  struct rip_patt *k = cfg_allocz(sizeof(struct rip_patt));
97
  k->metric = 1;
98 98
  k->i.pattern = cfg_strdup(n);
99 99
  add_tail(&RIP_CFG->iface_list, &k->i.n);
100 100
}

Also available in: Unified diff