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:
parent
046af98b30
commit
e910e2888b
@ -376,6 +376,8 @@ gst_pcap_parse_scan_frame (GstPcapParse * self,
|
|||||||
eth_type = GUINT16_FROM_BE (*((guint16 *) (buf + 14)));
|
eth_type = GUINT16_FROM_BE (*((guint16 *) (buf + 14)));
|
||||||
buf_ip = buf + SLL_HEADER_LEN;
|
buf_ip = buf + SLL_HEADER_LEN;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eth_type != 0x800)
|
if (eth_type != 0x800)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user