diff options
Diffstat (limited to 'libs/pbd/pathscanner.cc')
-rw-r--r-- | libs/pbd/pathscanner.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/pbd/pathscanner.cc b/libs/pbd/pathscanner.cc index 8f57726c7f..fac2dcfd96 100644 --- a/libs/pbd/pathscanner.cc +++ b/libs/pbd/pathscanner.cc @@ -29,6 +29,7 @@ #include <glibmm/miscutils.h> #include "pbd/error.h" +#include "pbd/pathexpand.h" #include "pbd/pathscanner.h" #include "pbd/stl_delete.h" @@ -90,7 +91,7 @@ PathScanner::run_scan_internal (vector<string *> *result, { DIR *dir; struct dirent *finfo; - char *pathcopy = strdup (dirpath.c_str()); + char *pathcopy = strdup (search_path_expand (dirpath).c_str()); char *thisdir; string fullpath; string search_str; |