]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ldpd: Fix compiler warning about uninitialized rt
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 4 Oct 2017 01:32:32 +0000 (21:32 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 4 Oct 2017 01:32:32 +0000 (21:32 -0400)
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 <sharpd@cumulusnetworks.com>
ldpd/ldp_vty_exec.c

index 459947c0421bb3d544700c4d08594804a998a0fb..66c127abdc982b1f67a0710c49f26f35136c1adf 100644 (file)
@@ -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;