From 36434c20ebc7dbfd69e7a8514da67c4d277bb497 Mon Sep 17 00:00:00 2001 From: Alexey Fisher Date: Mon, 28 Nov 2011 19:03:50 +0100 Subject: [PATCH] typefind: fix build error 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 --- gst/typefind/gsttypefindfunctions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index 22ad2fb..55c21a9 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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; -- 2.7.4