diff options
-rw-r--r-- | gui/theme.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/theme.cpp b/gui/theme.cpp index 1c8798e472..1387eb94ea 100644 --- a/gui/theme.cpp +++ b/gui/theme.cpp @@ -132,6 +132,9 @@ bool Theme::isThemeLoadingRequired() { bool Theme::themeConfigParseHeader(Common::String header, Common::String &themeName) { header.trim(); + if (header.empty()) + return false; + if (header[0] != '[' || header.lastChar() != ']') return false; |