diff options
author | Merov Linden <merov@lindenlab.com> | 2011-03-18 18:09:28 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2011-03-18 18:09:28 -0700 |
commit | cb1c85261e768c9653ed40bf6160e7cc7ca9ce74 (patch) | |
tree | a5cccd2fca9fefe4717168f108bcb8d18fe98cf5 /indra/llvfs | |
parent | c2e88db89a8ba111efd0c1b61cc8dec400a007cb (diff) | |
parent | 6c0fbdafaed93b90354b37513a3b61dee56fb8b2 (diff) |
Pull in viewer-development
Diffstat (limited to 'indra/llvfs')
-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; |