From f57514e10e299b69270cb7cd4ec8f8005bf0ad1c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 18 Oct 2017 18:39:04 -0400 Subject: [PATCH] bgpd: Fix 'not initialized' possibly on older compilers Signed-off-by: Donald Sharp --- bgpd/bgp_evpn_vty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5