Răsfoiți Sursa

BUG: Fixed Bug #154 - Uninitialized type initialized value cache variables should return value

Andy Cedilnik 22 ani în urmă
părinte
comite
ff32379e26
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      Source/cmCacheManager.cxx

+ 1 - 1
Source/cmCacheManager.cxx

@@ -586,7 +586,7 @@ cmCacheManager::CacheIterator cmCacheManager::GetCacheIterator(const char *key)
 const char* cmCacheManager::GetCacheValue(const char* key) const
 {
   CacheEntryMap::const_iterator i = m_Cache.find(key);
-  if(i != m_Cache.end() && i->second.m_Type != cmCacheManager::UNINITIALIZED &&
+  if(i != m_Cache.end() &&
     i->second.m_Initialized)
     {
     return i->second.m_Value.c_str();