diff options
author | Dave Barach <dave@barachs.net> | 2016-08-12 09:26:47 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-08-12 09:27:05 -0400 |
commit | 042ffb4f818fda559ec2c128f475b1258e657e45 (patch) | |
tree | d5125ea24cd0ad0cea46ff9937bc208dea486e23 /vnet/vnet/map | |
parent | 6353920e0c2507e2e67ef4033fd1bc92fd8ba965 (diff) |
VPP-189 fix more coverity warnings
Change-Id: If464a5f06ab15eead9eaf12e89792d3761796956
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vnet/vnet/map')
-rw-r--r-- | vnet/vnet/map/map.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vnet/vnet/map/map.c b/vnet/vnet/map/map.c index 8236811f8b1..93a10c679f0 100644 --- a/vnet/vnet/map/map.c +++ b/vnet/vnet/map/map.c @@ -511,10 +511,10 @@ map_add_domain_command_fn (vlib_main_t * vm, ip4_address_t ip4_prefix; ip6_address_t ip6_prefix; ip6_address_t ip6_src; - u32 ip6_prefix_len, ip4_prefix_len, map_domain_index, ip6_src_len; + u32 ip6_prefix_len = 0, ip4_prefix_len = 0, map_domain_index, ip6_src_len; u32 num_m_args = 0; /* Optional arguments */ - u32 ea_bits_len, psid_offset = 0, psid_length = 0; + u32 ea_bits_len = 0, psid_offset = 0, psid_length = 0; u32 mtu = 0; u8 flags = 0; ip6_src_len = 128; @@ -607,7 +607,7 @@ map_add_rule_command_fn (vlib_main_t * vm, unformat_input_t _line_input, *line_input = &_line_input; ip6_address_t tep; u32 num_m_args = 0; - u32 psid, map_domain_index; + u32 psid = 0, map_domain_index; /* Get a line of input. */ if (!unformat_user (input, unformat_line_input, line_input)) |