]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Fix compilation warning 762/head
authorßingen <bingen@voltanet.io>
Thu, 13 Jul 2017 13:09:38 +0000 (15:09 +0200)
committerßingen <bingen@voltanet.io>
Thu, 13 Jul 2017 13:09:38 +0000 (15:09 +0200)
Signed-off-by: ßingen <bingen@voltanet.io>
zebra/zebra_rib.c

index e6341efaf06b221dda07895eea35ef79d047f2bd..b07a0cf05d6ebebaf6c1f733a5b8840333a982b2 100644 (file)
@@ -200,7 +200,7 @@ route_entry_copy_nexthops (struct route_entry *re, struct nexthop *nh)
 {
   assert(!re->nexthop);
   copy_nexthops(&re->nexthop, nh, NULL);
-  for (struct nexthop *nexthop = nh; nh; nh = nh->next)
+  for (struct nexthop *nexthop = nh; nexthop; nexthop = nexthop->next)
     re->nexthop_num++;
 }