diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-03-03 09:07:25 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-07 14:51:46 +0200 |
commit | c5e0075f8b0ed11c81333bbe6970ebc9479e3a70 (patch) | |
tree | f67d18033cf3333d368e2dd9567e41928b232cd3 /ospfd/ospf_spf.c | |
parent | *: add missing includes (diff) | |
download | frr-c5e0075f8b0ed11c81333bbe6970ebc9479e3a70.tar.xz frr-c5e0075f8b0ed11c81333bbe6970ebc9479e3a70.zip |
*: add/cleanup initialisers
There were some (inconsequential) warnings about uninitialised use of
variables. Also, in one case, sub-structs were mixed in initialisation,
which doesn't quite work as intended.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_spf.c')
-rw-r--r-- | ospfd/ospf_spf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index 9f6c6f471..5f8ef6f99 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -590,8 +590,7 @@ ospf_nexthop_calculation (struct ospf_area *area, struct vertex *v, if (l->m[0].type == LSA_LINK_TYPE_POINTOPOINT) { - struct in_addr nexthop; - nexthop.s_addr = 0; + struct in_addr nexthop = { .s_addr = 0 }; /* If the destination is a router which connects to the calculating router via a Point-to-MultiPoint |