]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: set external_info instance value to 0
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 11 Apr 2018 16:26:57 +0000 (12:26 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 13 Apr 2018 21:17:42 +0000 (17:17 -0400)
This value is used but never set. Set it to zero to suppress static
analysis errors.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
ospfd/ospf_lsa.c

index fd3da45f78a78f8b245802ba5573a136e9873bf6..6623790837031d7cc850d00fb2cd60debad11a20 100644 (file)
@@ -1756,6 +1756,7 @@ static struct ospf_lsa *ospf_lsa_translated_nssa_new(struct ospf *ospf,
        ei.route_map_set.metric = -1;
        ei.route_map_set.metric_type = -1;
        ei.tag = 0;
+       ei.instance = 0;
 
        if ((new = ospf_external_lsa_new(ospf, &ei, &type7->data->id))
            == NULL) {