From c231d1697cd1dc94d754e3aaaafca4a124a2eda3 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Tue, 1 Mar 2011 11:23:15 +0000 Subject: play it safe with the dbus method call@ --- src/sound-service-dbus.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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"); -- cgit v1.2.3