diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-03-03 09:14:56 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-03-03 09:14:56 +0000 |
commit | d92bb37a5f6adb5f4c1b4e09777a15bc7f2485eb (patch) | |
tree | 4f5b88424c493580f054db2eccc7507eac648c42 | |
parent | 838b77481251f6e53da709dec1ce5e2d6f190d2e (diff) | |
parent | c231d1697cd1dc94d754e3aaaafca4a124a2eda3 (diff) | |
download | ayatana-indicator-sound-d92bb37a5f6adb5f4c1b4e09777a15bc7f2485eb.tar.gz ayatana-indicator-sound-d92bb37a5f6adb5f4c1b4e09777a15bc7f2485eb.tar.bz2 ayatana-indicator-sound-d92bb37a5f6adb5f4c1b4e09777a15bc7f2485eb.zip |
g_variant defensive one liner
-rw-r--r-- | src/sound-service-dbus.c | 2 |
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"); |