From: Renato Westphal Date: Thu, 30 Mar 2017 15:33:46 +0000 (-0300) Subject: ldpd: fix harmless maybe-uninitialized warning X-Git-Tag: frr-3.1-dev~14^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f790d62ad140b98ab05ef96aee349284c4d604fc;p=matthieu%2Ffrr.git ldpd: fix harmless maybe-uninitialized warning Signed-off-by: Renato Westphal --- 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;