commit ab3d6f6fa162b531093df67a97ae2e0127bc2558
parent 3dbdc40b0e123100e86aec77f77e94350ea0abbd
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 13 Nov 2015 14:48:11 -0500
Merge pull request #227 from xerpi/master
Check the client_setup() return value
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/swaybg/main.c b/swaybg/main.c
@@ -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;