diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2011-03-23 11:36:00 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2011-03-23 11:36:00 -0700 |
commit | 3ad81bb4a642d25018b773d2ef005380664d8170 (patch) | |
tree | b1bbf66c0babf6c541858b34d4a7f66ad19308b0 /indra/llvfs/lldir.cpp | |
parent | a2c659378b8b7c8a4128c61b5cde91eccc9db4e6 (diff) | |
parent | 62a958d341532287519a23a362ff7aebd501e1c9 (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; |