mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Fix segfault in border.c
This commit is contained in:
parent
18602367f1
commit
31ce010861
1 changed files with 4 additions and 0 deletions
|
@ -233,6 +233,10 @@ static char *generate_container_title(swayc_t *container) {
|
||||||
title = generate_container_title(child);
|
title = generate_container_title(child);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!title) {
|
||||||
|
title = "(null)";
|
||||||
|
}
|
||||||
|
|
||||||
len = strlen(name) + strlen(title) + 1;
|
len = strlen(name) + strlen(title) + 1;
|
||||||
if (i < container->children->length-1) {
|
if (i < container->children->length-1) {
|
||||||
len++;
|
len++;
|
||||||
|
|
Loading…
Reference in a new issue