validate-bin-monitor: Initialize local variable
authorEdward Hervey <bilboed@bilboed.com>
Fri, 31 Oct 2014 15:01:52 +0000 (16:01 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 31 Oct 2014 15:01:52 +0000 (16:01 +0100)
Avoids segfaults when freeing them if they didn't get filled in

validate/gst/validate/gst-validate-bin-monitor.c

index e508aa7031279ef8b47b29cc5dfc7d90bffa9005..9199b95bc3c3e7e83d23afd009a6a217093cf162 100644 (file)
@@ -210,8 +210,8 @@ static void
 _bus_handler (GstBus * bus, GstMessage * message,
     GstValidateBinMonitor * monitor)
 {
-  GError *err;
-  gchar *debug;
+  GError *err = NULL;
+  gchar *debug = NULL;
 
   switch (GST_MESSAGE_TYPE (message)) {
     case GST_MESSAGE_ERROR: