swaymsg: fix get_outputs status code

This commit is contained in:
emersion 2018-10-29 11:25:54 +01:00
parent 1c2a356dcf
commit eb675f0dfd
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -23,7 +23,7 @@ static bool success_object(json_object *result) {
json_object *success; json_object *success;
if (!json_object_object_get_ex(result, "success", &success)) { if (!json_object_object_get_ex(result, "success", &success)) {
return false; return true;
} }
return json_object_get_boolean(success); return json_object_get_boolean(success);