From 3d6b4d4dffaef67d9f49380a39a248e7b7756da4 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sun, 13 Nov 2016 18:19:38 +0100 Subject: ndpi_util: fix ‘type/ip_offset’ may be used uninitialized in this function [-Werror=maybe-uninitialized] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/ndpi_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/ndpi_util.c b/example/ndpi_util.c index d5d0643e1..df47b888c 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -561,12 +561,12 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow, u_int16_t eth_offset = 0; u_int16_t radio_len; u_int16_t fc; - u_int16_t type; + u_int16_t type = 0; int wifi_len = 0; int pyld_eth_len = 0; int check; u_int64_t time; - u_int16_t ip_offset, ip_len; + u_int16_t ip_offset = 0, ip_len; u_int16_t frag_off = 0, vlan_id = 0; u_int8_t proto = 0; u_int32_t label; -- cgit v1.2.3