From: Donald Sharp Date: Wed, 4 Oct 2017 01:32:32 +0000 (-0400) Subject: ldpd: Fix compiler warning about uninitialized rt X-Git-Tag: frr-4.0-dev~246^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7f6778408b05005648413eb82b65e64e88d9cd9b;p=matthieu%2Ffrr.git 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 --- diff --git a/ldpd/ldp_vty_exec.c b/ldpd/ldp_vty_exec.c index 459947c042..66c127abdc 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;