summaryrefslogtreecommitdiff
path: root/indra/llvfs
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2016-07-05 17:52:01 +0300
committerandreykproductengine <akleshchev@productengine.com>2016-07-05 17:52:01 +0300
commit4b29e9869c52fcba33d40c530eb2fa92648c330e (patch)
treefa22bca1cd8d712be4f8f083b3674a803d9893b2 /indra/llvfs
parent9b7f38f6fb1a4b19c5cc7cab2f673e2bc9f5ae93 (diff)
MAINT-5388 File "conversation.log" created in users' root directory on Windows
Diffstat (limited to 'indra/llvfs')
-rw-r--r--indra/llvfs/lldir.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp
index 5f4fb8f4a0..86a15f2ef2 100644
--- a/indra/llvfs/lldir.cpp
+++ b/indra/llvfs/lldir.cpp
@@ -531,6 +531,13 @@ std::string LLDir::getExpandedFilename(ELLPath location, const std::string& subd
case LL_PATH_PER_ACCOUNT_CHAT_LOGS:
prefix = getPerAccountChatLogsDir();
+ if (prefix.empty())
+ {
+ // potentially directory was not set yet
+ // intentionally return a blank string to the caller
+ LL_DEBUGS("LLDir") << "Conversation log directory is not yet set" << LL_ENDL;
+ return std::string();
+ }
break;
case LL_PATH_LOGS: