queue2: Fix uninitialized variable compiler warning
authorPhilippe Normand <pnormand@igalia.com>
Wed, 24 Mar 2010 09:57:08 +0000 (10:57 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 24 Mar 2010 09:57:08 +0000 (10:57 +0100)
plugins/elements/gstqueue2.c

index 532a317..aa85e0a 100644 (file)
@@ -478,7 +478,8 @@ clean_ranges (GstQueue2 * queue)
 static GstQueue2Range *
 find_range (GstQueue2 * queue, guint64 offset, guint64 length)
 {
-  GstQueue2Range *range, *walk;
+  GstQueue2Range *range = NULL;
+  GstQueue2Range *walk;
 
   /* first do a quick check for the current range */
   for (walk = queue->ranges; walk; walk = walk->next) {