summaryrefslogtreecommitdiff
path: root/indra/llvfs
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-03-09 11:52:43 -0800
committerLeyla Farazha <leyla@lindenlab.com>2011-03-09 11:52:43 -0800
commit90c824d10dbf4468dfdd9ffebf7456f81964391a (patch)
tree812cc4dd06d128fbbf1e7c960f96e5476eb925f6 /indra/llvfs
parent6158929e3ee87bc879c99d35963a151006394ed7 (diff)
parentf47a9a4ea3d40ecaf03e853469b1570a4ad72ce7 (diff)
Merge
Diffstat (limited to 'indra/llvfs')
-rw-r--r--indra/llvfs/lldir.cpp6
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;