diff options
author | Sergi Granell <xerpi.g.12@gmail.com> | 2015-11-13 20:42:45 +0100 |
---|---|---|
committer | Sergi Granell <xerpi.g.12@gmail.com> | 2015-11-13 20:42:45 +0100 |
commit | a8b18b5159236f5b68e875ddf9ff0d52a0f8ea3c (patch) | |
tree | 9fa6154d0ab4762468162201800708165b515257 /swaybg | |
parent | Merge pull request #226 from sce/fix_get_socketpath (diff) | |
download | sway-a8b18b5159236f5b68e875ddf9ff0d52a0f8ea3c.tar.gz sway-a8b18b5159236f5b68e875ddf9ff0d52a0f8ea3c.tar.zst sway-a8b18b5159236f5b68e875ddf9ff0d52a0f8ea3c.zip |
Check the client_setup() return value
Diffstat (limited to 'swaybg')
-rw-r--r-- | swaybg/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybg/main.c b/swaybg/main.c index af0a1b27..db5af375 100644 --- a/swaybg/main.c +++ b/swaybg/main.c | |||
@@ -14,7 +14,9 @@ void sway_terminate(void) { | |||
14 | 14 | ||
15 | int main(int argc, char **argv) { | 15 | int main(int argc, char **argv) { |
16 | init_log(L_INFO); | 16 | init_log(L_INFO); |
17 | state = client_setup(); | 17 | if (!(state = client_setup())) { |
18 | return -1; | ||
19 | } | ||
18 | 20 | ||
19 | uint8_t r = 0, g = 0, b = 0; | 21 | uint8_t r = 0, g = 0, b = 0; |
20 | 22 | ||