summaryrefslogtreecommitdiffstats
path: root/src/vnet/ipfix-export/flow_report.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2022-02-22 11:42:35 +0000
committerOle Tr�an <otroan@employees.org>2022-03-04 15:10:18 +0000
commit3626a7cf82428dbe01df443f6011fe3144266209 (patch)
tree673d1eb75b427d5be7d39e32099f4857c45b3eeb /src/vnet/ipfix-export/flow_report.c
parent9a63b6e14731d22cb633a9cb542b5d3f8539717f (diff)
ipfix-export: fix the warning message for uninitialized variable
Type: fix Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I2b8b6a3b5a6df71e84ce2f15ef7117f390121c2f
Diffstat (limited to 'src/vnet/ipfix-export/flow_report.c')
-rw-r--r--src/vnet/ipfix-export/flow_report.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ipfix-export/flow_report.c b/src/vnet/ipfix-export/flow_report.c
index e290973f900..9d21d8b046d 100644
--- a/src/vnet/ipfix-export/flow_report.c
+++ b/src/vnet/ipfix-export/flow_report.c
@@ -349,8 +349,8 @@ vnet_ipfix_exp_send_buffer (vlib_main_t *vm, ipfix_exporter_t *exp,
vlib_frame_t *f;
ipfix_set_header_t *s;
ipfix_message_header_t *h;
- ip4_header_t *ip4;
- ip6_header_t *ip6;
+ ip4_header_t *ip4 = 0;
+ ip6_header_t *ip6 = 0;
void *ip;
udp_header_t *udp;
int ip_len;