diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-04 03:32:32 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-04 03:32:32 +0200 |
commit | 7f6778408b05005648413eb82b65e64e88d9cd9b (patch) | |
tree | da1476b24cd0b87db35f5d6587fe5a8ae6172690 /ldpd/ldp_vty_exec.c | |
parent | Merge pull request #1282 from opensourcerouting/ldpd-minor-issues (diff) | |
download | frr-7f6778408b05005648413eb82b65e64e88d9cd9b.tar.xz frr-7f6778408b05005648413eb82b65e64e88d9cd9b.zip |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ldpd/ldp_vty_exec.c')
-rw-r--r-- | ldpd/ldp_vty_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldpd/ldp_vty_exec.c b/ldpd/ldp_vty_exec.c index 459947c04..66c127abd 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; |