From ed80aec2d67fe21b0ded7b179bad7a93653902ca Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 9 Nov 2010 22:17:40 +0000 Subject: [PATCH] fix bug in path_expand() when passed an empty string git-svn-id: svn://localhost/ardour2/branches/3.0@7987 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/utils.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index 71dbc42694..6604a93d4a 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -290,6 +290,10 @@ path_is_paired (string path, string& pair_base) string path_expand (string path) { + if (path.empty()) { + return path; + } + #ifdef HAVE_WORDEXP /* Handle tilde and environment variable expansion in session path */ string ret = path;