summaryrefslogtreecommitdiffstats
path: root/ldpd/ldp_vty_exec.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-03-30 17:33:46 +0200
committerRenato Westphal <renato@opensourcerouting.org>2017-03-31 16:10:33 +0200
commitf790d62ad140b98ab05ef96aee349284c4d604fc (patch)
treef1fb0f099df9cf649df0ebc3f2eef308f3748382 /ldpd/ldp_vty_exec.c
parentMerge pull request #301 from qlyoung/nhrpd-gitignore (diff)
downloadfrr-f790d62ad140b98ab05ef96aee349284c4d604fc.tar.xz
frr-f790d62ad140b98ab05ef96aee349284c4d604fc.zip
ldpd: fix harmless maybe-uninitialized warning
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/ldp_vty_exec.c')
-rw-r--r--ldpd/ldp_vty_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/ldp_vty_exec.c b/ldpd/ldp_vty_exec.c
index dfd5af974..a149b7fe3 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;