Merge pull request #1824 from stump/themename-fallback-null-check

UI: Add null check for rename of default theme
This commit is contained in:
Jim 2019-04-10 19:46:54 -07:00 committed by GitHub
commit 3031a11762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {