tests: init variable to avoid compiler warning on osx
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 4 Oct 2009 18:51:40 +0000 (19:51 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 6 Oct 2009 19:04:10 +0000 (20:04 +0100)
Init variable to avoid compiler warning and make the build bot happy
(the compiler most likely complains about this because it doesn't know
here that fail_unless will abort/exit in the path where it fails).

tests/check/libs/bytereader.c

index 13b810f..a09ac04 100644 (file)
@@ -45,7 +45,7 @@ GST_START_TEST (test_initialization)
   GstBuffer *buffer = gst_buffer_new ();
   GstByteReader reader = GST_BYTE_READER_INIT (data, 4);
   GstByteReader *reader2;
-  guint8 x;
+  guint8 x = 0;
 
   GST_BUFFER_DATA (buffer) = data;
   GST_BUFFER_SIZE (buffer) = 4;