diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-11-09 22:17:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-11-09 22:17:40 +0000 |
commit | ed80aec2d67fe21b0ded7b179bad7a93653902ca (patch) | |
tree | baf752aadf1b74a4671ecd5ef3af4b57fa79c972 | |
parent | 66a9112d48b5726f61eec7ce4cfc4bd15b9420d0 (diff) |
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
-rw-r--r-- | libs/ardour/utils.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; |