diff options
| author | Leyla Farazha <leyla@lindenlab.com> | 2011-03-11 14:33:24 -0800 |
|---|---|---|
| committer | Leyla Farazha <leyla@lindenlab.com> | 2011-03-11 14:33:24 -0800 |
| commit | 3011e697c34ac6ad1ce95b435c487f8da20fb5e2 (patch) | |
| tree | 57fef4c1a3430c07cf1cb682c1a1784282cad7d3 /indra/llvfs/lldir.cpp | |
| parent | e342c522b4bb5efd8eb9687efddfe47199e02395 (diff) | |
| parent | d0b457365145233c3b4bc64991b183722b13fac8 (diff) | |
Merge
Diffstat (limited to 'indra/llvfs/lldir.cpp')
| -rw-r--r-- | indra/llvfs/lldir.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp index cb898e385f..341c96f6ea 100644 --- a/indra/llvfs/lldir.cpp +++ b/indra/llvfs/lldir.cpp @@ -149,7 +149,11 @@ const std::string LLDir::findFile(const std::string& filename, const std::vector { if (!search_path_iter->empty()) { - std::string filename_and_path = (*search_path_iter) + getDirDelimiter() + filename; + std::string filename_and_path = (*search_path_iter); + if (!filename.empty()) + { + filename_and_path += getDirDelimiter() + filename; + } if (fileExists(filename_and_path)) { return filename_and_path; |
