From 31ce0108614c80978751e9658b6ca1cc6ba36250 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 2 Aug 2016 07:35:25 -0400 Subject: Fix segfault in border.c --- sway/border.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sway') 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++; -- cgit v1.2.3