summaryrefslogtreecommitdiff
path: root/indra/newview/llconversationlog.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2017-01-25 11:13:59 -0800
committerRider Linden <rider@lindenlab.com>2017-01-25 11:13:59 -0800
commit25cd2ed2052b0d30d61e8b81df151993983f561b (patch)
tree7f9b29356b658303bdf7608a25ccb23c8e6130da /indra/newview/llconversationlog.cpp
parent8d86f5a0c457fceff5923fb7ca32259b2718addc (diff)
parent68413474c4479eee9bdbeb34ea131475ba1d646e (diff)
Merge
Diffstat (limited to 'indra/newview/llconversationlog.cpp')
-rw-r--r--indra/newview/llconversationlog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llconversationlog.cpp b/indra/newview/llconversationlog.cpp
index 05c7e6caa5..4e69896b69 100644
--- a/indra/newview/llconversationlog.cpp
+++ b/indra/newview/llconversationlog.cpp
@@ -448,7 +448,12 @@ bool LLConversationLog::moveLog(const std::string &originDirectory, const std::s
std::string LLConversationLog::getFileName()
{
std::string filename = "conversation";
- return gDirUtilp->getExpandedFilename(LL_PATH_PER_ACCOUNT_CHAT_LOGS, filename) + ".log";
+ std::string log_address = gDirUtilp->getExpandedFilename(LL_PATH_PER_ACCOUNT_CHAT_LOGS, filename);
+ if (!log_address.empty())
+ {
+ log_address += ".log";
+ }
+ return log_address;
}
bool LLConversationLog::saveToFile(const std::string& filename)