From db70f6496c7be38edff5d5594d1fb5a7895a23bc Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Mon, 18 Oct 2021 18:45:40 +0900 Subject: [PATCH] swaymsg: fix misplaced return value --- swaymsg/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swaymsg/main.c b/swaymsg/main.c index c3468a16..5f7854f5 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c @@ -528,8 +528,8 @@ int main(int argc, char **argv) { if (!quiet) { sway_log(SWAY_ERROR, "failed to parse payload as json: %s", json_tokener_error_desc(err)); - ret = 1; } + ret = 1; break; } else if (quiet) { json_object_put(obj);