Commit e910e288 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

pcapparse: fix compiler warning

gstpcapparse.c: In function 'gst_pcap_parse_chain':
gstpcapparse.c:381:6: error: 'eth_type' may be used uninitialized in this function [-Werror=uninitialized]
gstpcapparse.c:354:11: note: 'eth_type' was declared here
parent 046af98b
......@@ -376,6 +376,8 @@ gst_pcap_parse_scan_frame (GstPcapParse * self,
eth_type = GUINT16_FROM_BE (*((guint16 *) (buf + 14)));
buf_ip = buf + SLL_HEADER_LEN;
return FALSE;
if (eth_type != 0x800)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment