diff --git a/indra/llfilesystem/lldiskcache.cpp b/indra/llfilesystem/lldiskcache.cpp
index 5134870d36a530f271aa7273c559e0ec6910816d..3b5fa8bc8048e5e9f7f88e02f2f5518c3d2bc8c8 100644
--- a/indra/llfilesystem/lldiskcache.cpp
+++ b/indra/llfilesystem/lldiskcache.cpp
@@ -78,7 +78,7 @@ void LLDiskCache::purge()
 #if LL_WINDOWS
     std::wstring cache_path(ll_convert_string_to_wide(sCacheDir));
 #else
-    std::string cache_path(mCacheDir);
+    std::string cache_path(sCacheDir);
 #endif
     if (boost::filesystem::is_directory(cache_path))
     {
@@ -214,7 +214,7 @@ void LLDiskCache::clearCache()
 #if LL_WINDOWS
     boost::filesystem::path cache_path(ll_convert_string_to_wide(sCacheDir));
 #else
-    boost::filesystem::path cache_path(mCacheDir);
+    boost::filesystem::path cache_path(sCacheDir);
 #endif
     if (boost::filesystem::is_directory(cache_path))
     {