From f790d62ad140b98ab05ef96aee349284c4d604fc Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Thu, 30 Mar 2017 12:33:46 -0300 Subject: [PATCH] ldpd: fix harmless maybe-uninitialized warning Signed-off-by: Renato Westphal --- ldpd/ldp_vty_exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldpd/ldp_vty_exec.c b/ldpd/ldp_vty_exec.c index dfd5af9748..a149b7fe35 100644 --- a/ldpd/ldp_vty_exec.c +++ b/ldpd/ldp_vty_exec.c @@ -1049,7 +1049,7 @@ show_lib_msg(struct vty *vty, struct imsg *imsg, struct show_params *params) static int show_lib_detail_msg(struct vty *vty, struct imsg *imsg, struct show_params *params) { - struct ctl_rt *rt; + struct ctl_rt *rt = NULL; char dstnet[BUFSIZ]; static int upstream, downstream; size_t buflen; @@ -1172,7 +1172,7 @@ static int show_lib_detail_msg_json(struct imsg *imsg, struct show_params *params, json_object *json) { - struct ctl_rt *rt; + struct ctl_rt *rt = NULL; char dstnet[BUFSIZ]; static json_object *json_lib_entry; static json_object *json_adv_labels; -- 2.39.5