summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_static.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-11-13 04:12:13 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-01-18 00:45:02 +0100
commit4b2792b53b85533011e3943fc62810b0da3b6a95 (patch)
tree61788587312ace0c427b2bb7f2a155ebf7411a80 /zebra/zebra_static.c
parentzebra: Perform safe walk of RIB entries in rib_process() (diff)
downloadfrr-4b2792b53b85533011e3943fc62810b0da3b6a95.tar.xz
frr-4b2792b53b85533011e3943fc62810b0da3b6a95.zip
zebra: Cleanup zebra_static CLANG/SA issues.
When compiling using CLANG's SA, cleanup the SA issues found. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_static.c')
-rw-r--r--zebra/zebra_static.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c
index b32395006..7d104f30d 100644
--- a/zebra/zebra_static.c
+++ b/zebra/zebra_static.c
@@ -50,6 +50,8 @@ static_install_route (afi_t afi, safi_t safi, struct prefix *p, struct static_ro
if (! table)
return;
+ memset (&nh_p, 0, sizeof (nh_p));
+
/* Lookup existing route */
rn = route_node_get (table, p);
RNODE_FOREACH_RIB (rn, rib)