diff --git a/backends/fs/amigaos4/amigaos4-fs.cpp b/backends/fs/amigaos4/amigaos4-fs.cpp index ef6447fcf72..71ddd182e28 100644 --- a/backends/fs/amigaos4/amigaos4-fs.cpp +++ b/backends/fs/amigaos4/amigaos4-fs.cpp @@ -116,7 +116,7 @@ const char *lastPathComponent(const Common::String &str) { if (offset <= 0) { debug(6, "Bad offset"); - return; + return 0; } const char *p = str.c_str();