diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-08-02 07:35:25 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-08-02 07:35:25 -0400 |
commit | 31ce0108614c80978751e9658b6ca1cc6ba36250 (patch) | |
tree | d4e2154b5f74461366b13379949ff2563eaa0820 /sway | |
parent | 18602367f17a8bd88275773a1a1558fd14afff72 (diff) |
Fix segfault in border.c
Diffstat (limited to 'sway')
-rw-r--r-- | sway/border.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/border.c b/sway/border.c index f681e4f1..46343d61 100644 --- a/sway/border.c +++ b/sway/border.c @@ -233,6 +233,10 @@ static char *generate_container_title(swayc_t *container) { title = generate_container_title(child); } + if (!title) { + title = "(null)"; + } + len = strlen(name) + strlen(title) + 1; if (i < container->children->length-1) { len++; |