diff options
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c index ae09d4f8..0014b33a 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -940,8 +940,8 @@ static void invoke_swaybar(struct bar_config *bar) { | |||
940 | if (!command) { | 940 | if (!command) { |
941 | const char msg[] = "Unable to allocate swaybar command string"; | 941 | const char msg[] = "Unable to allocate swaybar command string"; |
942 | int len = sizeof(msg); | 942 | int len = sizeof(msg); |
943 | write(filedes[1], &len, sizeof(int)); | 943 | if (write(filedes[1], &len, sizeof(int))) {}; |
944 | write(filedes[1], msg, len); | 944 | if (write(filedes[1], msg, len)) {}; |
945 | close(filedes[1]); | 945 | close(filedes[1]); |
946 | _exit(EXIT_FAILURE); | 946 | _exit(EXIT_FAILURE); |
947 | } | 947 | } |