From db878db01a880422cf1525b3fb628407463bcee0 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 6 May 2019 18:22:56 +0000 Subject: [PATCH] bgpd: fix false compiler warning Signed-off-by: Quentin Young --- bgpd/bgp_packet.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5