diff options
author | Oz Linden <oz@lindenlab.com> | 2011-03-21 06:59:13 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-03-21 06:59:13 -0400 |
commit | 8e0ea2fb7271b6d559ec751d47eb8b2992d4611d (patch) | |
tree | 0368edab036f87a93a21bcd0fdd635dd749d6fc0 /indra/llvfs/lldir.cpp | |
parent | 2453ccbd3ee10a4f845e98fb51aac6c1e4bca5a5 (diff) | |
parent | f122d0939060fd597820a71d85a5c0d839bcff5d (diff) |
merge changes for storm-659
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; |