summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-02 13:33:23 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-02 13:33:23 (GMT)
commit32bfe66b5d261bfc6c9f43f045f56651b8f012ea (patch)
treeeb909fc898dac331525878465ae201305c177686 /Source/cmMakefile.cxx
parent8a0e3c103b67914c95536e82f1cb71c34c11b1ef (diff)
downloadCMake-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.cxx3
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();
}