aboutsummaryrefslogtreecommitdiffstats
path: root/swaybg
diff options
context:
space:
mode:
authorLibravatar Sergi Granell <xerpi.g.12@gmail.com>2015-11-13 20:42:45 +0100
committerLibravatar Sergi Granell <xerpi.g.12@gmail.com>2015-11-13 20:42:45 +0100
commita8b18b5159236f5b68e875ddf9ff0d52a0f8ea3c (patch)
tree9fa6154d0ab4762468162201800708165b515257 /swaybg
parentMerge pull request #226 from sce/fix_get_socketpath (diff)
downloadsway-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.c4
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
15int main(int argc, char **argv) { 15int 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