]> Dogcows Code - chaz/openbox/commitdiff
no const weirdness
authorDana Jansens <danakj@orodu.net>
Wed, 30 May 2007 13:58:53 +0000 (13:58 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 30 May 2007 13:58:53 +0000 (13:58 +0000)
render/theme.c

index 152ea34fb70d57b552c59abfb771dab7b748c61a..1d47382393c667afb0075fdadbe73ab7f47d78d0 100644 (file)
@@ -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);
This page took 0.031366 seconds and 4 git commands to generate.