From 44cf465ff5f768c96e8708eba35f31f296e78b1e Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 29 Jan 2008 17:30:48 -0500 Subject: BUG: Fix uninitialzed members of cmCacheManager. --- Source/cmCacheManager.cxx | 6 ++++++ Source/cmCacheManager.h | 1 + 2 files changed, 7 insertions(+) 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, -- cgit v0.12