pulse: fix compiler warnings when compiling with -DG_DISABLE_ASSERT
authorTim-Philipp Müller <tim@centricular.com>
Sun, 29 Jun 2014 16:05:13 +0000 (17:05 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 29 Jun 2014 16:06:30 +0000 (17:06 +0100)
Compiler complains about uninitialised variables in the impossible
'default' code path in device provider source/sink switch-case.

ext/pulse/pulsedeviceprovider.c

index 8e91700..c96488c 100644 (file)
@@ -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);