]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix false compiler warning
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 6 May 2019 18:22:56 +0000 (18:22 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 29 May 2019 18:02:57 +0000 (18:02 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_packet.c

index b5934fb56e220a67359c29430c08b48a54581e3a..c37e125f5352d77b0209f5dea1a5de8fbeff7b0d 100644 (file)
@@ -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