aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-01 11:23:15 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-01 11:23:15 +0000
commitc231d1697cd1dc94d754e3aaaafca4a124a2eda3 (patch)
tree9b1bad22259247dbeab7c7a5f160f2f35a089e12
parent45e0f3f3b6bc6b084219ef47f1822c3f666b9a58 (diff)
downloadayatana-indicator-sound-c231d1697cd1dc94d754e3aaaafca4a124a2eda3.tar.gz
ayatana-indicator-sound-c231d1697cd1dc94d754e3aaaafca4a124a2eda3.tar.bz2
ayatana-indicator-sound-c231d1697cd1dc94d754e3aaaafca4a124a2eda3.zip
play it safe with the dbus method call@
-rw-r--r--src/sound-service-dbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c
index 9be39c7..b493ce8 100644
--- a/src/sound-service-dbus.c
+++ b/src/sound-service-dbus.c
@@ -295,6 +295,8 @@ static gboolean sound_service_dbus_blacklist_player (SoundServiceDbus* self,
gchar* player_name,
gboolean blacklist)
{
+ g_return_val_if_fail (player_name != NULL, FALSE);
+
gboolean result = FALSE;
GSettings* our_settings = NULL;
our_settings = g_settings_new ("com.canonical.indicators.sound");