]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix rfapi false compiler warning
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 6 May 2019 18:24:25 +0000 (18:24 +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/rfapi/rfapi_import.c

index ad0900c2b8543f0b8e8f915211812ea84d50a918..b6d32d36eaa585ed625bb904bd4f4feb1672ade6 100644 (file)
@@ -4111,6 +4111,9 @@ static void rfapiProcessPeerDownRt(struct peer *peer,
                timer_service_func = rfapiWithdrawTimerEncap;
                break;
        default:
+               /* Suppress uninitialized variable warning */
+               rt = NULL;
+               timer_service_func = NULL;
                assert(0);
        }