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
This commit is contained in:
parent
66a9112d48
commit
ed80aec2d6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user