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 | 8fa8326d1c1c190c3a7197673f75961f0642405e (patch) | |
tree | 20aa510925ca2d9f6d308d831f3ba102bf1be073 | |
parent | c649f191933e84c9693553f361c994fb934a2795 (diff) | |
download | swaybg-8fa8326d1c1c190c3a7197673f75961f0642405e.tar.gz swaybg-8fa8326d1c1c190c3a7197673f75961f0642405e.tar.bz2 |
Check the client_setup() return value
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -14,7 +14,9 @@ void sway_terminate(void) { int main(int argc, char **argv) { init_log(L_INFO); - state = client_setup(); + if (!(state = client_setup())) { + return -1; + } uint8_t r = 0, g = 0, b = 0; |