diff options
author | Aloys Augustin <aloaugus@cisco.com> | 2020-09-01 15:59:46 +0200 |
---|---|---|
committer | BenoƮt Ganne <bganne@cisco.com> | 2020-09-01 15:22:32 +0000 |
commit | b6e211ad3bd23299af2ddc5e2363e351770055f0 (patch) | |
tree | 4acf38ca7907f3b8104c8d0d584feed7db32a02d /src/plugins/cnat/cnat_node_vip.c | |
parent | 6006ca85714fd2829f3e20429683f18d70943c04 (diff) |
misc: fix uninitialized use warnings with gcc-{8,9}
Change-Id: I4930c3c2a8025ec9ceb17e994137be67d88d455f
Type: fix
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
Diffstat (limited to 'src/plugins/cnat/cnat_node_vip.c')
-rw-r--r-- | src/plugins/cnat/cnat_node_vip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cnat/cnat_node_vip.c b/src/plugins/cnat/cnat_node_vip.c index afabed08f1a..574b72fe27b 100644 --- a/src/plugins/cnat/cnat_node_vip.c +++ b/src/plugins/cnat/cnat_node_vip.c @@ -72,9 +72,9 @@ cnat_vip_inline (vlib_main_t * vm, vlib_combined_counter_main_t *cntm = &cnat_translation_counters; cnat_main_t *cm = &cnat_main; const cnat_translation_t *ct = NULL; - ip4_header_t *ip4; + ip4_header_t *ip4 = NULL; ip_protocol_t iproto; - ip6_header_t *ip6; + ip6_header_t *ip6 = NULL; udp_header_t *udp0; cnat_client_t *cc; u16 next0; |