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:
parent
1b321567bf
commit
1997034465
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue