diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-03 21:32:32 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-10-03 21:32:32 -0400 | 
| commit | 7f6778408b05005648413eb82b65e64e88d9cd9b (patch) | |
| tree | da1476b24cd0b87db35f5d6587fe5a8ae6172690 /ldpd | |
| parent | c996743b78190935d453c22cea37840e71a0172d (diff) | |
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')
| -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 459947c042..66c127abdc 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;  | 
