matroska: Fix unitialized variable
authorEdward Hervey <bilboed@bilboed.com>
Tue, 15 Jun 2010 15:20:20 +0000 (17:20 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 15 Jun 2010 15:20:20 +0000 (17:20 +0200)
gst/matroska/ebml-read.c

index 2a62f24..4b1ae79 100644 (file)
@@ -194,7 +194,7 @@ gst_ebml_read_clear (GstEbmlRead * ebml)
 static const guint8 *
 gst_ebml_read_peek (GstByteReader * br, guint peek)
 {
-  const guint8 *data;
+  const guint8 *data = NULL;
 
   if (G_LIKELY (gst_byte_reader_peek_data (br, peek, &data)))
     return data;
@@ -252,7 +252,7 @@ gst_ebml_read_master (GstEbmlRead * ebml, guint32 * id)
 {
   guint64 length;
   guint prefix;
-  const guint8 *data;
+  const guint8 *data = NULL;
   GstFlowReturn ret;
   GstEbmlMaster m;