aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-03-03 09:14:56 +0000
committerConor Curran <conor.curran@canonical.com>2011-03-03 09:14:56 +0000
commitd92bb37a5f6adb5f4c1b4e09777a15bc7f2485eb (patch)
tree4f5b88424c493580f054db2eccc7507eac648c42 /src
parent838b77481251f6e53da709dec1ce5e2d6f190d2e (diff)
parentc231d1697cd1dc94d754e3aaaafca4a124a2eda3 (diff)
downloadayatana-indicator-sound-d92bb37a5f6adb5f4c1b4e09777a15bc7f2485eb.tar.gz
ayatana-indicator-sound-d92bb37a5f6adb5f4c1b4e09777a15bc7f2485eb.tar.bz2
ayatana-indicator-sound-d92bb37a5f6adb5f4c1b4e09777a15bc7f2485eb.zip
g_variant defensive one liner
Diffstat (limited to 'src')
-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");