aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2021-04-25 08:44:20 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2021-04-25 08:44:59 +0000
commita81e2e7890c2fce2a74dbb859e6855e0414a6ea1 (patch)
treecfca35cb7df465d74171a63ca7fc9d01b56ce684
parent6409e594272f66ce3896706ac705bbd465ce233e (diff)
downloadsrc-a81e2e7890c2fce2a74dbb859e6855e0414a6ea1.tar.gz
src-a81e2e7890c2fce2a74dbb859e6855e0414a6ea1.zip
Make gcc happy by initializing error in rib_handle_ifaddr_info().
-rw-r--r--sys/net/route/route_ifaddrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route/route_ifaddrs.c b/sys/net/route/route_ifaddrs.c
index e6d97f3c74f0..15ee13201059 100644
--- a/sys/net/route/route_ifaddrs.c
+++ b/sys/net/route/route_ifaddrs.c
@@ -100,7 +100,7 @@ rib_handle_ifaddr_one(uint32_t fibnum, int cmd, struct rt_addrinfo *info)
int
rib_handle_ifaddr_info(uint32_t fibnum, int cmd, struct rt_addrinfo *info)
{
- int error, last_error = 0;
+ int error = 0, last_error = 0;
bool didwork = false;
if (V_rt_add_addr_allfibs == 0) {