]> Dogcows Code - chaz/openbox/blobdiff - openbox/openbox.c
match the declarations in the header
[chaz/openbox] / openbox / openbox.c
index 444dc29fc30eef38f958eb0d3ec00cdc01a0a2e4..a571b18498494e895e95d2fb0712474309a6590d 100644 (file)
@@ -221,9 +221,13 @@ int main(int argc, char **argv)
             }
 
             /* load the theme specified in the rc file */
-            ob_rr_theme = RrThemeNew(ob_rr_inst, config_theme);
-            if (ob_rr_theme == NULL)
-                ob_exit_with_error("Unable to load a theme.");
+            {
+                RrTheme *theme;
+                if ((theme = RrThemeNew(ob_rr_inst, config_theme)))
+                    ob_rr_theme = theme;
+                if (ob_rr_theme == NULL)
+                    ob_exit_with_error("Unable to load a theme.");
+            }
 
             moveresize_startup(reconfigure);
             screen_startup(reconfigure);
This page took 0.020906 seconds and 4 git commands to generate.