Browse Source

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

UI: Add null check for rename of default theme
Jim 6 years ago
parent
commit
3031a11762
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UI/obs-app.cpp

+ 1 - 1
UI/obs-app.cpp

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