summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/daemon/engines.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon/engines.c b/src/daemon/engines.c
index 305604e..daceaf7 100644
--- a/src/daemon/engines.c
+++ b/src/daemon/engines.c
@@ -181,7 +181,7 @@ static ThemeEngine* get_theme_engine(void)
}
char* enginename = g_settings_get_string(gsettings, GSETTINGS_KEY_THEME);
- if (enginename == NULL)
+ if (enginename == NULL || *enginename == '\0')
{
active_engine = load_theme_engine("standard");
g_assert(active_engine != NULL);
@@ -196,10 +196,10 @@ static ThemeEngine* get_theme_engine(void)
active_engine = load_theme_engine("standard");
}
- g_free(enginename);
-
g_assert(active_engine != NULL);
}
+
+ g_free(enginename);
}
return active_engine;