From ed1dcb6b48012ca5c4a1358915e309ec05f9afe3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 30 May 2007 13:58:53 +0000 Subject: [PATCH] no const weirdness --- render/theme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/render/theme.c b/render/theme.c index 152ea34f..1d473823 100644 --- a/render/theme.c +++ b/render/theme.c @@ -90,13 +90,12 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, g_message("Unable to load the theme '%s'", DEFAULT_THEME); return NULL; } - name = DEFAULT_THEME; } ps.inst = inst; theme = g_new0(RrTheme, 1); theme->inst = inst; - theme->name = g_strdup(name); + theme->name = g_strdup(name ? name : DEFAULT_THEME); theme->a_disabled_focused_max = RrAppearanceNew(inst, 1); theme->a_disabled_unfocused_max = RrAppearanceNew(inst, 1); -- 2.45.2