From 7f6778408b05005648413eb82b65e64e88d9cd9b Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 3 Oct 2017 21:32:32 -0400 Subject: ldpd: Fix compiler warning about uninitialized rt Certain compilers cannot recognize that rt is actually being init'ed, but let's set it to NULL 'till we get them updated. Signed-off-by: Donald Sharp --- ldpd/ldp_vty_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldpd') diff --git a/ldpd/ldp_vty_exec.c b/ldpd/ldp_vty_exec.c index 459947c04..66c127abd 100644 --- a/ldpd/ldp_vty_exec.c +++ b/ldpd/ldp_vty_exec.c @@ -1509,7 +1509,7 @@ ldp_vty_dispatch_lib(struct vty *vty, struct imsg *imsg, struct show_params *params, json_object *json) { static bool filtered = false; - struct ctl_rt *rt; + struct ctl_rt *rt = NULL; struct prefix prefix; int ret; -- cgit v1.2.3