mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
BUG: Fixed Bug #154 - Uninitialized type initialized value cache variables should return value
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user