commit 89d1571041d8e7c388b62c8f86ece06cc806dc04
parent d3d1e38c1b39fdbe0357e62cadb2fe57f9cf71a4
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date: Thu, 3 May 2018 15:23:39 +1000
Fix potential segfault when setting container title
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/tree/container.c b/sway/tree/container.c
@@ -348,7 +348,7 @@ struct sway_container *container_view_create(struct sway_container *sibling,
swayc, title, sibling, sibling ? sibling->type : 0, sibling->name);
// Setup values
swayc->sway_view = sway_view;
- container_update_title(swayc, title);
+ container_update_title(swayc, title ? title : "");
swayc->width = 0;
swayc->height = 0;