aboutsummaryrefslogtreecommitdiff
path: root/swaybar/main.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-28 16:44:35 +0200
committerGitHub <noreply@github.com>2018-09-28 16:44:35 +0200
commitca7084cb52bd5a27a847e43320490b7a5ee5ef73 (patch)
tree9e9da5790b1fd66f13ab89b70570750081b36c45 /swaybar/main.c
parent02df1e2b1b4306481f8e1023d99fb568095a89b3 (diff)
parent25e1f327386c5c8d0b2839d03e2d833e71dc9e61 (diff)
Merge pull request #2723 from ianyfan/swaybar
swaybar: small fixes and clean-ups
Diffstat (limited to 'swaybar/main.c')
-rw-r--r--swaybar/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index 60e4b37c..d2c579db 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -96,7 +96,10 @@ int main(int argc, char **argv) {
signal(SIGTERM, sig_handler);
- bar_setup(&swaybar, socket_path, bar_id);
+ if (!bar_setup(&swaybar, socket_path, bar_id)) {
+ free(socket_path);
+ return 1;
+ }
free(socket_path);
free(bar_id);