]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_route.c
Merge pull request #13564 from chiragshah6/fdev1
[mirror_frr.git] / bgpd / bgp_route.c
index 2624ae013fec181c47793e1f9171370765831af7..eb51bc1fd672333a5ecb3dbb63205af66645e690 100644 (file)
@@ -1466,7 +1466,7 @@ int bgp_evpn_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
                             struct bgp_path_info *exist, int *paths_eq)
 {
        enum bgp_path_selection_reason reason;
-       char pfx_buf[PREFIX2STR_BUFFER];
+       char pfx_buf[PREFIX2STR_BUFFER] = {};
 
        return bgp_path_info_cmp(bgp, new, exist, paths_eq, NULL, 0, pfx_buf,
                                AFI_L2VPN, SAFI_EVPN, &reason);
@@ -2653,7 +2653,7 @@ void bgp_best_selection(struct bgp *bgp, struct bgp_dest *dest,
        struct bgp_path_info *nextpi = NULL;
        int paths_eq, do_mpath, debug;
        struct list mp_list;
-       char pfx_buf[PREFIX2STR_BUFFER];
+       char pfx_buf[PREFIX2STR_BUFFER] = {};
        char path_buf[PATH_ADDPATH_STR_BUFFER];
 
        bgp_mp_list_init(&mp_list);