From: Quentin Young Date: Mon, 6 May 2019 18:22:56 +0000 (+0000) Subject: bgpd: fix false compiler warning X-Git-Tag: base_7.2~293^2~16 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=db878db01a880422cf1525b3fb628407463bcee0;p=mirror%2Ffrr.git bgpd: fix false compiler warning Signed-off-by: Quentin Young --- diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index b5934fb56e..c37e125f53 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -2299,6 +2299,8 @@ int bgp_process_packet(struct thread *thread) __FUNCTION__, peer->host); break; default: + /* Suppress uninitialized variable warning */ + mprc = 0; /* * The message type should have been sanitized before * we ever got here. Receipt of a message with an