diff options
author | Loren Shih <seraph@lindenlab.com> | 2011-03-16 14:54:56 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2011-03-16 14:54:56 -0400 |
commit | 037a83cd47e016f70092bccfdb2c13e759c6ff0a (patch) | |
tree | 2183c8ef1364d5f4e784cb91ea4d67b1861b2452 /indra/llvfs | |
parent | 15b0509c01dbeec6854f4a0a5965e900eda06de1 (diff) | |
parent | 742dd75751f65224d80eb4f7d20daf5a21776c5f (diff) |
Automated merge up from viewer-development into mesh-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; |