> Or even assert probably. There is nothing reasonable we can do in this
> case.

you mean something like this ?
pavel
diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp
index 7a35d0c..9844c8a 100644
--- a/src/support/filetools.cpp
+++ b/src/support/filetools.cpp
@@ -429,6 +429,8 @@ string const onlyPath(string const & filename)
 // If basepath is empty, use CWD as base.
 FileName const makeAbsPath(string const & relPath, string const & basePath)
 {
+       BOOST_ASSERT(!relPath.empty());
+
        // checks for already absolute path
        if (os::is_absolute_path(relPath))
                return FileName(relPath);
diff --git a/src/support/filetools.h b/src/support/filetools.h
index 32ef735..f18109f 100644
--- a/src/support/filetools.h
+++ b/src/support/filetools.h
@@ -212,7 +212,7 @@ std::string const expandPath(std::string const & path);
   If relpath is absolute, just use that.
   If basepath doesn't exist use CWD.
   */
-FileName const makeAbsPath(std::string const & RelPath = std::string(),
+FileName const makeAbsPath(std::string const & RelPath,
                              std::string const & BasePath = std::string());
 
 /** Creates a nice compact path for displaying. The parameter

Reply via email to