]> Dogcows Code - chaz/openbox/blobdiff - render/theme.c
missing a {
[chaz/openbox] / render / theme.c
index ed836efd058cd8914156d3f6cf5a50f97fc99649..f5af79e98595e408ec9ef28fa89a06b7cd0a04e3 100644 (file)
@@ -87,14 +87,15 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name,
             name = NULL;
         }
     }
-    if (name == NULL && allow_fallback) {
-        if (!parse_load_theme(DEFAULT_THEME, &ps.doc, &root, &ps.path)) {
-            g_message("Unable to load the theme '%s'", DEFAULT_THEME);
+    if (name == NULL) {
+        if (allow_fallback) {
+            if (!parse_load_theme(DEFAULT_THEME, &ps.doc, &root, &ps.path)) {
+                g_message("Unable to load the theme '%s'", DEFAULT_THEME);
+                return NULL;
+            }
+        } else
             return NULL;
-        }
     }
-    if (name == NULL)
-        return NULL;
 
     ps.inst = inst;
 
This page took 0.022993 seconds and 4 git commands to generate.