stefan pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=199703446538004eeb3bb1e039aae38eab57be4d

commit 199703446538004eeb3bb1e039aae38eab57be4d
Author: Stefan Schmidt <s.schm...@samsung.com>
Date:   Fri Jan 23 13:22:59 2015 +0100

    e_sys: Make sure we return false if systemd does not support various 
suspend modes
    
    Since this was introduced this callback always returned 1 no matter if 
systemd
    said it does support the mode or not.
    
    CID: 1261291
---
 src/bin/e_sys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_sys.c b/src/bin/e_sys.c
index 4110b82..41c0633 100644
--- a/src/bin/e_sys.c
+++ b/src/bin/e_sys.c
@@ -392,7 +392,7 @@ _e_sys_systemd_check_cb(void *data, const Eldbus_Message 
*m, Eldbus_Pending *p _
    if (!eldbus_message_arguments_get(m, "s", &s)) return;
    if (!s) return;
    if (!strcmp(s, "yes")) *dest = 1;
-   else *dest = 1;
+   else *dest = 0;
 }
 
 static void

-- 


Reply via email to