[Scummvm-git-logs] scummvm master -> 702c843e0688f767559ce89a8cccf4a2a5c37436
sev-
sev at scummvm.org
Thu Oct 22 12:00:24 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
702c843e06 AD: Fix hang when autogen target is for a single word
Commit: 702c843e0688f767559ce89a8cccf4a2a5c37436
https://github.com/scummvm/scummvm/commit/702c843e0688f767559ce89a8cccf4a2a5c37436
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-10-22T13:59:55+02:00
Commit Message:
AD: Fix hang when autogen target is for a single word
Changed paths:
engines/advancedDetector.cpp
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 3112faf82c..91e408101e 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -93,7 +93,7 @@ static Common::String sanitizeName(const char *name, int maxLen) {
maxLen -= word.size();
}
- if (*name && *(name + 1) == 0) {
+ if ((*name && *(name + 1) == 0) || !*name) {
if (res.empty()) // Make sure that we add at least something
res += word.empty() ? lastWord : word;
More information about the Scummvm-git-logs
mailing list