diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-07-27 10:56:15 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-07-27 10:56:15 +0100 |
commit | e910e2888b1d5917d8227f014adb3f94a342999b (patch) | |
tree | e222920147eea68cc8b7481cda2e0bd3f74aab3c /gst/pcapparse/gstpcapparse.c | |
parent | 046af98b301396570488a56443fdd1d8c5aacd79 (diff) | |
download | gstreamer-plugins-bad-e910e2888b1d5917d8227f014adb3f94a342999b.tar.gz |
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
Diffstat (limited to 'gst/pcapparse/gstpcapparse.c')
-rw-r--r-- | gst/pcapparse/gstpcapparse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/pcapparse/gstpcapparse.c b/gst/pcapparse/gstpcapparse.c index 5dc17ee36..596391667 100644 --- a/gst/pcapparse/gstpcapparse.c +++ b/gst/pcapparse/gstpcapparse.c @@ -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) |