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
This commit is contained in:
Tim-Philipp Müller 2011-07-27 10:56:15 +01:00
parent 046af98b30
commit e910e2888b

View file

@ -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;
break;
default:
return FALSE;
}
if (eth_type != 0x800)