diff options
Diffstat (limited to 'common/gameDetector.cpp')
-rw-r--r-- | common/gameDetector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index c17c78d31c..f228d9173e 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -642,7 +642,7 @@ int GameDetector::detectMain() { if (!_gameDataPath) { warning("No path was provided. Assuming the data files are in the current directory"); - _gameDataPath = ""; + _gameDataPath = strdup(""); #ifndef __PALM_OS__ // add last slash also in File::fopenNoCase, so this is not needed } else if (_gameDataPath[strlen(_gameDataPath)-1] != '/' #ifdef __MORPHOS__ |