mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue