From f797aec81ec51045ed854a6ce77698508779c50c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 14 Mar 2008 07:23:06 +0100 Subject: [PATCH] Fix segmentation fault on no layout available --- config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.c b/config.c index 3f1549b9..5837083b 100644 --- a/config.c +++ b/config.c @@ -397,7 +397,9 @@ config_parse_screen(cfg_t *cfg, int screen) else { warn("no default layout available\n"); + layout = p_new(Layout, 1); layout->arrange = layout_tile; + layout_list_push(&virtscreen->layouts, layout); } /* Tags */