diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-07-27 18:17:50 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-07-27 18:17:50 +0200 |
commit | c33e80d5f73ea64be513afb67fa9d65b8a392df3 (patch) | |
tree | 10734b197503a177bfd1bc839916fcd2c00c054b /ospfd/ospf_lsa.c | |
parent | bgpd: Improve indentation in bgp_updgrp_adv.c (diff) | |
download | frr-c33e80d5f73ea64be513afb67fa9d65b8a392df3.tar.xz frr-c33e80d5f73ea64be513afb67fa9d65b8a392df3.zip |
ospfd: Coverity warns that we could possibly use unininted data
In ospf_handle_exnl_lsa_lsId_chg there is a code path
where that we may be using uninitialized data for decisions.
Doubtful that this happens but let's make it less likely to
even more.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | ospfd/ospf_lsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 2c2ddd439..af05f5b59 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -1761,7 +1761,7 @@ static struct ospf_lsa *ospf_handle_exnl_lsa_lsId_chg(struct ospf *ospf, struct as_external_lsa *al; struct in_addr mask; struct ospf_lsa *new; - struct external_info ei_summary; + struct external_info ei_summary = {}; struct external_info *ei_old; lsa = ospf_lsdb_lookup_by_id(ospf->lsdb, OSPF_AS_EXTERNAL_LSA, |