From: Amos Jeffries Date: Thu, 31 Mar 2016 15:36:10 +0000 (+1300) Subject: CacheManager::GetInstance should be static not local X-Git-Tag: SQUID_4_0_8~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0ffd7c389f2f29767ad12d7a320a8ff99a416c4;p=thirdparty%2Fsquid.git CacheManager::GetInstance should be static not local --- diff --git a/src/cache_manager.cc b/src/cache_manager.cc index 6ad2af3533..0565787d23 100644 --- a/src/cache_manager.cc +++ b/src/cache_manager.cc @@ -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;