From b31dd134f60a89638ec7cc130dba8259817254e3 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Sun, 5 Jun 2011 15:53:05 +0200 Subject: [PATCH] Never call gDirUtilp->getExpandedFilename when getLindenUserDir() is empty. --- indra/newview/llviewertexturelist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index f7562ecec..78d983025 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -265,8 +265,8 @@ void LLViewerTextureList::shutdown() if (++count >= max_count) break; } - - if (count > 0 && !gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, "").empty()) + + if (count > 0 && !gDirUtilp->getLindenUserDir(true).empty()) { std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, get_texture_list_name()); llofstream file;