diff options
| author | Vincent JARDIN <vincent.jardin@6wind.com> | 2017-10-08 23:14:55 +0200 |
|---|---|---|
| committer | Vincent JARDIN <vincent.jardin@6wind.com> | 2017-10-08 23:19:34 +0200 |
| commit | 6e38a9ece08f0acdadac3b0df7cc3fcbaa3166bd (patch) | |
| tree | 8353492cf2b3ab68168f30c507071fd07fec8539 | |
| parent | 3981b5c7f3232086aecd35e56bbeb4b5116c8469 (diff) | |
ospf6d: fix clang warning
troute and tinfo needs to be 0'd
Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
| -rw-r--r-- | ospf6d/ospf6_asbr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index e3ceee2439..c65578c11e 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -438,6 +438,9 @@ void ospf6_asbr_redistribute_add(int type, ifindex_t ifindex, if (!ospf6_zebra_is_redistribute(type)) return; + memset(&troute, 0, sizeof(troute)); + memset(&tinfo, 0, sizeof(tinfo)); + if (IS_OSPF6_DEBUG_ASBR) { prefix2str(prefix, pbuf, sizeof(pbuf)); zlog_debug("Redistribute %s (%s)", pbuf, ZROUTE_NAME(type)); @@ -457,8 +460,6 @@ void ospf6_asbr_redistribute_add(int type, ifindex_t ifindex, /* apply route-map */ if (ospf6->rmap[type].map) { - memset(&troute, 0, sizeof(troute)); - memset(&tinfo, 0, sizeof(tinfo)); troute.route_option = &tinfo; tinfo.ifindex = ifindex; tinfo.tag = tag; |
