Browse Source

BUG: GetCacheValue must check if value is UNINITIALIZED. If so, pretend it doesn't exist.

Brad King 23 years ago
parent
commit
1eb3dd19fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmCacheManager.cxx

+ 1 - 1
Source/cmCacheManager.cxx

@@ -515,7 +515,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())
+  if(i != m_Cache.end() && i->second.m_Type != cmCacheManager::UNINITIALIZED)
     {
     return i->second.m_Value.c_str();
     }