From 6a86f7c1c914c0f95092d9bd39f5bcc18c9ddebd Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 31 Oct 2014 16:01:52 +0100 Subject: [PATCH] validate-bin-monitor: Initialize local variable Avoids segfaults when freeing them if they didn't get filled in --- validate/gst/validate/gst-validate-bin-monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/gst-validate-bin-monitor.c b/validate/gst/validate/gst-validate-bin-monitor.c index e508aa7031..9199b95bc3 100644 --- a/validate/gst/validate/gst-validate-bin-monitor.c +++ b/validate/gst/validate/gst-validate-bin-monitor.c @@ -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: