mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
swaybar: fail if bar id is invalid
This commit is contained in:
parent
02df1e2b1b
commit
312d009f65
5 changed files with 26 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue