diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-12-07 15:58:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-07 15:58:22 -0500 |
| commit | b291ac44bcea80002783b582022a02afaa3cf4f8 (patch) | |
| tree | 2afee1c9d524e7181aa73ae8781702c0b01d23d8 | |
| parent | ac92680d8ddba0ab3ddf3099b22b75cc81e50ffa (diff) | |
| parent | c66861afa4cbfa064923d46c470db67004215347 (diff) | |
Merge pull request #3450 from opensourcerouting/staticd-sa-warnings
staticd: fix static analysis warnings
| -rw-r--r-- | staticd/static_vty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 59d4ae924b..ae0026cc97 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -1211,7 +1211,7 @@ DEFPY(ipv6_route_address_interface, { struct static_vrf *svrf; struct static_vrf *nh_svrf; - const char *flag; + const char *flag = NULL; if (table_str && vrf && !vrf_is_mapped_on_netns(vrf_lookup_by_name(vrf))) { vty_out(vty, @@ -1280,7 +1280,7 @@ DEFPY(ipv6_route_address_interface_vrf, VTY_DECLVAR_CONTEXT(vrf, vrf); struct static_vrf *svrf = vrf->info; struct static_vrf *nh_svrf; - const char *flag; + const char *flag = NULL; if (table_str && !vrf_is_mapped_on_netns(vrf)) { vty_out(vty, @@ -1341,7 +1341,7 @@ DEFPY(ipv6_route, { struct static_vrf *svrf; struct static_vrf *nh_svrf; - const char *flag; + const char *flag = NULL; if (table_str && vrf && !vrf_is_mapped_on_netns(vrf_lookup_by_name(vrf))) { vty_out(vty, @@ -1407,7 +1407,7 @@ DEFPY(ipv6_route_vrf, VTY_DECLVAR_CONTEXT(vrf, vrf); struct static_vrf *svrf = vrf->info; struct static_vrf *nh_svrf; - const char *flag; + const char *flag = NULL; if (table_str && !vrf_is_mapped_on_netns(vrf)) { vty_out(vty, |
