UI: Add null check for rename of default theme

Without this, we strcmp a null pointer if no theme is set in the
configuration file.
This commit is contained in:
stump 2019-04-10 22:09:37 -04:00
parent d0f52a6479
commit bc99ec4d7c

View File

@ -1029,7 +1029,7 @@ bool OBSApp::InitTheme()
const char *themeName = config_get_string(globalConfig, "General",
"CurrentTheme");
if (strcmp(themeName, "Default") == 0)
if (themeName && strcmp(themeName, "Default") == 0)
themeName = "System";
if (!themeName) {