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

This commit is contained in:
Andy Cedilnik 2003-08-18 14:05:53 -04:00
parent 7f5b38b190
commit ff32379e26
1 changed files with 1 additions and 1 deletions

View File

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