Certain compilers are saying that it is possible
to use some json variables before they are initialized,
which could result in using weird data. Fix to make
compiler happy even if this is never possible.
Fixes: #2423
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
static void show_l3vni_entry(struct vty *vty, struct bgp *bgp,
json_object *json)
{
- json_object *json_vni;
- json_object *json_import_rtl;
- json_object *json_export_rtl;
+ json_object *json_vni = NULL;
+ json_object *json_import_rtl = NULL;
+ json_object *json_export_rtl = NULL;
char buf1[10];
char buf2[INET6_ADDRSTRLEN];
char rt_buf[25];