summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-01-29 22:30:48 (GMT)
committerBrad King <brad.king@kitware.com>2008-01-29 22:30:48 (GMT)
commit44cf465ff5f768c96e8708eba35f31f296e78b1e (patch)
treed9a32d9c28c1b77f1be2007c8368109587b75ddc /Source
parent6066e92ba2a9470e302e29cf0e63fd096245e4f3 (diff)
downloadCMake-44cf465ff5f768c96e8708eba35f31f296e78b1e.zip
CMake-44cf465ff5f768c96e8708eba35f31f296e78b1e.tar.gz
CMake-44cf465ff5f768c96e8708eba35f31f296e78b1e.tar.bz2
BUG: Fix uninitialzed members of cmCacheManager.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCacheManager.cxx6
-rw-r--r--Source/cmCacheManager.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index 3eea333..bd95354 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -42,6 +42,12 @@ const char* cmCacheManagerTypes[] =
0
};
+cmCacheManager::cmCacheManager()
+{
+ this->CacheMajorVersion = 0;
+ this->CacheMinorVersion = 0;
+}
+
const char* cmCacheManager::TypeToString(cmCacheManager::CacheEntryType type)
{
if ( type > 6 )
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h
index 4fa6ed0..50cc873 100644
--- a/Source/cmCacheManager.h
+++ b/Source/cmCacheManager.h
@@ -30,6 +30,7 @@ class cmMarkAsAdvancedCommand;
class cmCacheManager
{
public:
+ cmCacheManager();
class CacheIterator;
friend class cmCacheManager::CacheIterator;
enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC,