summaryrefslogtreecommitdiffstats
path: root/ldpd/ldp_vty_exec.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-04 03:32:32 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-10-04 03:32:32 +0200
commit7f6778408b05005648413eb82b65e64e88d9cd9b (patch)
treeda1476b24cd0b87db35f5d6587fe5a8ae6172690 /ldpd/ldp_vty_exec.c
parentMerge pull request #1282 from opensourcerouting/ldpd-minor-issues (diff)
downloadfrr-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.c2
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;