]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CacheManager::GetInstance should be static not local
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 31 Mar 2016 15:36:10 +0000 (04:36 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 31 Mar 2016 15:36:10 +0000 (04:36 +1300)
src/cache_manager.cc

index 6ad2af353351c0e8d9f685b84925117504888779..0565787d233c799b7718dbfe4a1f77062f5efd82 100644 (file)
@@ -465,7 +465,7 @@ CacheManager::PasswdGet(Mgr::ActionPasswordList * a, const char *action)
 CacheManager*
 CacheManager::GetInstance()
 {
-    CacheManager *instance = nullptr;
+    static CacheManager *instance = nullptr;
     if (!instance) {
         debugs(16, 6, "starting cachemanager up");
         instance = new CacheManager;