aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-03 15:23:39 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-03 15:23:39 +1000
commit89d1571041d8e7c388b62c8f86ece06cc806dc04 (patch)
tree61b914d503713288bc16fc622e1a8bb78395ad80 /sway/tree
parentChange comment format (diff)
downloadsway-89d1571041d8e7c388b62c8f86ece06cc806dc04.tar.gz
sway-89d1571041d8e7c388b62c8f86ece06cc806dc04.tar.zst
sway-89d1571041d8e7c388b62c8f86ece06cc806dc04.zip
Fix potential segfault when setting container title
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index d19f13ae..de03ac68 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -348,7 +348,7 @@ struct sway_container *container_view_create(struct sway_container *sibling,
348 swayc, title, sibling, sibling ? sibling->type : 0, sibling->name); 348 swayc, title, sibling, sibling ? sibling->type : 0, sibling->name);
349 // Setup values 349 // Setup values
350 swayc->sway_view = sway_view; 350 swayc->sway_view = sway_view;
351 container_update_title(swayc, title); 351 container_update_title(swayc, title ? title : "");
352 swayc->width = 0; 352 swayc->width = 0;
353 swayc->height = 0; 353 swayc->height = 0;
354 354