From b917bb4789b14d1bb1445b9777ab494e9623fd50 Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Sun, 30 Aug 2009 10:55:54 +0000 Subject: [PATCH] Patch by Matt McCutchen to find levels in current directory when selected from command line. (Bug 485) SVN-Revision: 5909 --- src/file_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_system.cpp b/src/file_system.cpp index 5f5be1d72..be39082e7 100644 --- a/src/file_system.cpp +++ b/src/file_system.cpp @@ -35,7 +35,7 @@ std::string dirname(const std::string& filename) if(p == std::string::npos) p = filename.find_last_of('\\'); if(p == std::string::npos) - return ""; + return "./"; return filename.substr(0, p+1); } -- 2.11.0