]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: fix harmless maybe-uninitialized warning
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 30 Mar 2017 15:33:46 +0000 (12:33 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 31 Mar 2017 14:10:33 +0000 (11:10 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/ldp_vty_exec.c

index dfd5af97485a4721e53a0754010d405fba6bff35..a149b7fe3522b4993dbd758cb88559dad8e291fa 100644 (file)
@@ -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;