diff options
Diffstat (limited to 'raul/Path.hpp')
-rw-r--r-- | raul/Path.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/raul/Path.hpp b/raul/Path.hpp index ba8574e..d1a86f9 100644 --- a/raul/Path.hpp +++ b/raul/Path.hpp @@ -74,7 +74,7 @@ public: static bool is_valid_name(const std::basic_string<char>& name) { - return is_valid(string("/").append(name)); + return name.length() > 0 && is_valid(string("/").append(name)); } static string pathify(const std::basic_string<char>& str); |