From 9361bc8fbcad0454f646c4c973bb9607967c3f87 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 Jul 2007 23:39:01 +0000 Subject: Fix recursive patch serialization (fix ticket 63). git-svn-id: http://svn.drobilla.net/lad/raul@642 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Path.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& name) { - return is_valid(string("/").append(name)); + return name.length() > 0 && is_valid(string("/").append(name)); } static string pathify(const std::basic_string& str); -- cgit v1.2.1