swaymsg: fix misplaced return value

master
Jason Nader 3 years ago committed by Simon Ser
parent 55cd8abd76
commit db70f6496c

@ -528,8 +528,8 @@ int main(int argc, char **argv) {
if (!quiet) { if (!quiet) {
sway_log(SWAY_ERROR, "failed to parse payload as json: %s", sway_log(SWAY_ERROR, "failed to parse payload as json: %s",
json_tokener_error_desc(err)); json_tokener_error_desc(err));
ret = 1;
} }
ret = 1;
break; break;
} else if (quiet) { } else if (quiet) {
json_object_put(obj); json_object_put(obj);

Loading…
Cancel
Save