diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-02 13:33:23 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-02 13:33:23 (GMT) |
commit | 32bfe66b5d261bfc6c9f43f045f56651b8f012ea (patch) | |
tree | eb909fc898dac331525878465ae201305c177686 /Source/cmMakefile.cxx | |
parent | 8a0e3c103b67914c95536e82f1cb71c34c11b1ef (diff) | |
download | CMake-32bfe66b5d261bfc6c9f43f045f56651b8f012ea.zip CMake-32bfe66b5d261bfc6c9f43f045f56651b8f012ea.tar.gz CMake-32bfe66b5d261bfc6c9f43f045f56651b8f012ea.tar.bz2 |
BUG: Fix problem with uninitialized variables
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 36997c6..f61f7bf 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -842,7 +842,8 @@ void cmMakefile::AddCacheDefinition(const char* name, const char* value, const char* val = value; cmCacheManager::CacheIterator it = this->GetCacheManager()->GetCacheIterator(name); - if(!it.IsAtEnd() && (it.GetType() == cmCacheManager::UNINITIALIZED)) + if(!it.IsAtEnd() && (it.GetType() == cmCacheManager::UNINITIALIZED) && + it.Initialized()) { val = it.GetValue(); } |