From e9613c8512a5bf6d1041c5665eb4f8a846a16a5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 29 Jun 2014 17:05:13 +0100 Subject: [PATCH] pulse: fix compiler warnings when compiling with -DG_DISABLE_ASSERT Compiler complains about uninitialised variables in the impossible 'default' code path in device provider source/sink switch-case. --- ext/pulse/pulsedeviceprovider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pulse/pulsedeviceprovider.c b/ext/pulse/pulsedeviceprovider.c index 8e91700..c96488c 100644 --- a/ext/pulse/pulsedeviceprovider.c +++ b/ext/pulse/pulsedeviceprovider.c @@ -606,8 +606,8 @@ gst_pulse_device_new (guint device_index, const gchar * device_name, GstCaps * caps, const gchar * internal_name, GstPulseDeviceType type) { GstPulseDevice *gstdev; - const gchar *element; - const gchar *klass; + const gchar *element = NULL; + const gchar *klass = NULL; g_return_val_if_fail (device_name, NULL); g_return_val_if_fail (internal_name, NULL); -- 2.7.4