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
This commit is contained in:
Stefan Schmidt 2015-01-23 13:22:59 +01:00
parent 1b321567bf
commit 1997034465
1 changed files with 1 additions and 1 deletions

View File

@ -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