[Xfce4-commits] [xfce/xfce4-power-manager] 02/02: coverity: cwe-252, Unchecked return value
noreply at xfce.org
noreply at xfce.org
Wed Feb 18 18:15:16 CET 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit 6216ebfac0b503ea980ba1bc292cec011445cea6
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Wed Feb 18 20:07:22 2015 +0300
coverity: cwe-252, Unchecked return value
---
settings/xfpm-settings.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index 44b8086..4f0eb1b 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -1654,7 +1654,9 @@ static void xfpm_settings_light_locker (XfconfChannel *channel,
xfpm_lock_on_suspend = xfconf_channel_get_bool (channel, PROPERTIES_PREFIX LOCK_SCREEN_ON_SLEEP, TRUE);
if (lock_on_suspend != xfpm_lock_on_suspend) {
variant = g_variant_new_boolean (xfpm_lock_on_suspend);
- g_settings_set_value (light_locker_settings, "lock-on-suspend", variant);
+ if (!g_settings_set_value (light_locker_settings, "lock-on-suspend", variant)) {
+ g_critical ("Cannot set value for property lock-on-suspend\n");
+ }
lock_on_suspend = xfpm_lock_on_suspend;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list