diff options
author | Brad King <brad.king@kitware.com> | 2002-09-11 20:12:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-09-11 20:12:49 (GMT) |
commit | 1eb3dd19fce7c382cc0f2c4d43cf116066f40e88 (patch) | |
tree | 6bbc0e203deb8db2aea8564514063cc85cdd9c14 /Source/cmCacheManager.cxx | |
parent | 9ec133d428a2c7c8a11c8be9b575da18ec281fed (diff) | |
download | CMake-1eb3dd19fce7c382cc0f2c4d43cf116066f40e88.zip CMake-1eb3dd19fce7c382cc0f2c4d43cf116066f40e88.tar.gz CMake-1eb3dd19fce7c382cc0f2c4d43cf116066f40e88.tar.bz2 |
BUG: GetCacheValue must check if value is UNINITIALIZED. If so, pretend it doesn't exist.
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 4c31a52..7412681 100644 --- a/Source/cmCacheManager.cxx +++ b/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(); } |