13
0

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:
Paul Davis 2010-11-09 22:17:40 +00:00
parent 66a9112d48
commit ed80aec2d6

View File

@ -290,6 +290,10 @@ path_is_paired (string path, string& pair_base)
string string
path_expand (string path) path_expand (string path)
{ {
if (path.empty()) {
return path;
}
#ifdef HAVE_WORDEXP #ifdef HAVE_WORDEXP
/* Handle tilde and environment variable expansion in session path */ /* Handle tilde and environment variable expansion in session path */
string ret = path; string ret = path;