From 5dbe63c07a2383478ee2f64be87ed4021ab6dd8d Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 8 Oct 2009 17:19:38 +0100 Subject: [PATCH] check: Hopefully fix an 'may be used uninitialized' warning on OS/X --- tests/check/libs/bytereader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/check/libs/bytereader.c b/tests/check/libs/bytereader.c index b08613db67..a1a16269e2 100644 --- a/tests/check/libs/bytereader.c +++ b/tests/check/libs/bytereader.c @@ -130,7 +130,7 @@ GST_START_TEST (test_get_uint_le) 0xfe, 0xdc, 0xba, 0x09, 0x87, 0x65, 0x43, 0x21 }; GstByteReader reader = GST_BYTE_READER_INIT (data, 16); - guint8 a; + guint8 a = 0; guint16 b = 0; guint32 c = 0; guint64 d = 0; @@ -173,7 +173,7 @@ GST_START_TEST (test_get_uint_be) 0xfe, 0xdc, 0xba, 0x09, 0x87, 0x65, 0x43, 0x21 }; GstByteReader reader = GST_BYTE_READER_INIT (data, 16); - guint8 a; + guint8 a = 0; guint16 b = 0; guint32 c = 0; guint64 d = 0;