mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue