X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ftheme.c;h=1d47382393c667afb0075fdadbe73ab7f47d78d0;hb=5074d902aa215a2a656980d31b19574a5db1f795;hp=b4d869182daa23da08c16ca76fdd8532310aced9;hpb=c726a1f709484da690a6fbcc7f6b8b4934660290;p=chaz%2Fopenbox diff --git a/render/theme.c b/render/theme.c index b4d86918..1d473823 100644 --- a/render/theme.c +++ b/render/theme.c @@ -95,7 +95,7 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, 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);