From 7414ebd6c416d826860459856f3fb5fd1b11301d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=9Fingen?= Date: Thu, 13 Jul 2017 15:09:38 +0200 Subject: [PATCH] zebra: Fix compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: ßingen --- zebra/zebra_rib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index e6341efaf0..b07a0cf05d 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -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++; } -- 2.39.5