Never call gDirUtilp->getExpandedFilename when getLindenUserDir() is empty.

This commit is contained in:
Aleric Inglewood
2011-06-05 15:53:05 +02:00
parent 08f2724481
commit b31dd134f6

View File

@@ -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;