From: Donald Sharp Date: Wed, 18 Oct 2017 22:39:04 +0000 (-0400) Subject: bgpd: Fix 'not initialized' possibly on older compilers X-Git-Tag: frr-4.0-dev~204^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F1339%2Fhead;p=mirror%2Ffrr.git bgpd: Fix 'not initialized' possibly on older compilers Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 07b86c05d6..70f7e78976 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -230,8 +230,8 @@ static void display_vni(struct vty *vty, struct bgpevpn *vpn, json_object *json) char *ecom_str; struct listnode *node, *nnode; struct ecommunity *ecom; - json_object *json_import_rtl; - json_object *json_export_rtl; + json_object *json_import_rtl = NULL; + json_object *json_export_rtl = NULL; if (json) { json_import_rtl = json_object_new_array();