typefind: fix build error
authorAlexey Fisher <bug-track@fisher-privat.net>
Mon, 28 Nov 2011 18:03:50 +0000 (19:03 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 28 Nov 2011 18:10:55 +0000 (18:10 +0000)
fix build errors:
gsttypefindfunctions.c:248:25: error: 'low' may be used uninitialized in this function [-Werror=uninitialized]
gsttypefindfunctions.c:239:24: error: 'high' may be used uninitialized in this function [-Werror=uninitialized]

Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
gst/typefind/gsttypefindfunctions.c

index 22ad2fb..55c21a9 100644 (file)
@@ -226,6 +226,8 @@ check_utf16 (const guint8 * data, gint len, gint endianness)
   GstByteReader br;
   guint16 high, low;
 
+  low = high = 0;
+
   if (len & 1)
     return FALSE;