summaryrefslogtreecommitdiffstats
path: root/bgpd/rfapi
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-06 20:24:25 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-29 20:02:57 +0200
commit21fe4510f9fc7198ac3b4890deb5b8b0eba39dd6 (patch)
tree998e0e03f9e89f0645beb24f93a59e33b65368c3 /bgpd/rfapi
parentbgpd: fix false compiler warning (diff)
downloadfrr-21fe4510f9fc7198ac3b4890deb5b8b0eba39dd6.tar.xz
frr-21fe4510f9fc7198ac3b4890deb5b8b0eba39dd6.zip
bgpd: fix rfapi false compiler warning
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/rfapi')
-rw-r--r--bgpd/rfapi/rfapi_import.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c
index ad0900c2b..b6d32d36e 100644
--- a/bgpd/rfapi/rfapi_import.c
+++ b/bgpd/rfapi/rfapi_import.c
@@ -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);
}