aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/file.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 52b66bd2f4..5f3402e9ed 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -160,6 +160,7 @@ bool DumpFile::open(const String &filename, bool createPath) {
if (filename[i] == '/' || filename[i] == '\\') {
Common::String subpath = filename;
subpath.erase(i);
+ if (subpath.empty()) continue;
AbstractFSNode *node = g_system->getFilesystemFactory()->makeFileNodePath(subpath);
if (node->exists()) continue;
if (!node->create(true)) warning("DumpFile: unable to create directories from path prefix");