diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-28 16:44:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 16:44:35 +0200 |
commit | ca7084cb52bd5a27a847e43320490b7a5ee5ef73 (patch) | |
tree | 9e9da5790b1fd66f13ab89b70570750081b36c45 /swaybar/main.c | |
parent | 02df1e2b1b4306481f8e1023d99fb568095a89b3 (diff) | |
parent | 25e1f327386c5c8d0b2839d03e2d833e71dc9e61 (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.c | 5 |
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); |