aggregator: Avoid a maybe-uninitialized warning
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Sat, 23 Dec 2017 22:25:58 +0000 (23:25 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 24 Dec 2017 10:39:14 +0000 (11:39 +0100)
Arch Linux x86_64, gcc 7.2.1-2, -Og -g3

libs/gst/base/gstaggregator.c

index 06c7cbb..0c97bfd 100644 (file)
@@ -384,7 +384,7 @@ gst_aggregator_pad_queue_is_empty (GstAggregatorPad * pad)
 static gboolean
 gst_aggregator_check_pads_ready (GstAggregator * self)
 {
-  GstAggregatorPad *pad;
+  GstAggregatorPad *pad = NULL;
   GList *l, *sinkpads;
   gboolean have_buffer = TRUE;
   gboolean have_event_or_query = FALSE;