]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: fix werror warning for potentially uninitialized variable
authorMartin Winter <mwinter@opensourcerouting.org>
Tue, 10 Oct 2017 02:27:44 +0000 (19:27 -0700)
committerMartin Winter <mwinter@opensourcerouting.org>
Tue, 10 Oct 2017 02:27:44 +0000 (19:27 -0700)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
bgpd/bgp_mplsvpn.c

index 4dacf39fb4b6d93f9e978b134e2611f5cacc2c74..89c8f85db9383139c41a2a55634b225377f24ce5 100644 (file)
@@ -651,7 +651,7 @@ int bgp_show_mpls_vpn(struct vty *vty, afi_t afi, struct prefix_rd *prd,
 
                                        if (rd_header) {
                                                u_int16_t type;
-                                               struct rd_as rd_as;
+                                               struct rd_as rd_as = {0};
                                                struct rd_ip rd_ip = {0};
 #if ENABLE_BGP_VNC
                                                struct rd_vnc_eth rd_vnc_eth = {