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

This commit is contained in:
Brad King 2002-09-11 16:12:49 -04:00
parent 9ec133d428
commit 1eb3dd19fc
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}