rcxml: do not try to use theme Clearlooks-3.4

If no theme is specified in rc.xml, just use built-in theme
This commit is contained in:
Johan Malm 2021-06-28 20:48:55 +01:00
parent be27bb30a3
commit 018593c824
2 changed files with 4 additions and 4 deletions

View file

@ -178,7 +178,10 @@ theme_read(struct theme *theme, const char *theme_name)
stream = fopen(themerc, "r");
}
if (!stream) {
info("cannot find theme (%s), using built-in", theme_name);
if (theme_name) {
info("cannot find theme (%s), using built-in",
theme_name);
}
theme_builtin(theme);
return;
}