Fix segmentation fault on no layout available
This commit is contained in:
parent
2b0de43885
commit
f797aec81e
2
config.c
2
config.c
|
@ -397,7 +397,9 @@ config_parse_screen(cfg_t *cfg, int screen)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
warn("no default layout available\n");
|
warn("no default layout available\n");
|
||||||
|
layout = p_new(Layout, 1);
|
||||||
layout->arrange = layout_tile;
|
layout->arrange = layout_tile;
|
||||||
|
layout_list_push(&virtscreen->layouts, layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tags */
|
/* Tags */
|
||||||
|
|
Loading…
Reference in New Issue