From bd7b718166fa0d27609da30e26ff53a1237f7739 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 15 Mar 2008 09:43:06 +0100 Subject: [PATCH] Simplify init; there's always a section --- config.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/config.c b/config.c index 15d941437..b76b76115 100644 --- a/config.c +++ b/config.c @@ -275,13 +275,8 @@ create_widgets(cfg_t* cfg_statusbar, Statusbar *statusbar) static void config_section_titlebar_init(cfg_t *cfg_titlebar, Titlebar *tb) { - if(cfg_titlebar) - { - tb->position = position_get_from_str(cfg_getstr(cfg_titlebar, "position")); - tb->icon = position_get_from_str(cfg_getstr(cfg_titlebar, "icon")); - } - else - tb->position = Auto; + tb->position = position_get_from_str(cfg_getstr(cfg_titlebar, "position")); + tb->icon = position_get_from_str(cfg_getstr(cfg_titlebar, "icon")); } static void