From e910e2888b1d5917d8227f014adb3f94a342999b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 27 Jul 2011 10:56:15 +0100 Subject: [PATCH] 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 --- gst/pcapparse/gstpcapparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/pcapparse/gstpcapparse.c b/gst/pcapparse/gstpcapparse.c index 5dc17ee368..5963916679 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)