X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=render%2Ftheme.c;h=1d47382393c667afb0075fdadbe73ab7f47d78d0;hb=b27d9d21a3ada323acaa714d4055137d162aad76;hp=152ea34fb70d57b552c59abfb771dab7b748c61a;hpb=65144cc56283747a8bd2df9b7384162c88cbad92;p=chaz%2Fopenbox 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);