BUG: Fix uninitialzed members of cmCacheManager.

This commit is contained in:
Brad King 2008-01-29 17:30:48 -05:00
parent 6066e92ba2
commit 44cf465ff5
2 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,12 @@ const char* cmCacheManagerTypes[] =
0 0
}; };
cmCacheManager::cmCacheManager()
{
this->CacheMajorVersion = 0;
this->CacheMinorVersion = 0;
}
const char* cmCacheManager::TypeToString(cmCacheManager::CacheEntryType type) const char* cmCacheManager::TypeToString(cmCacheManager::CacheEntryType type)
{ {
if ( type > 6 ) if ( type > 6 )

View File

@ -30,6 +30,7 @@ class cmMarkAsAdvancedCommand;
class cmCacheManager class cmCacheManager
{ {
public: public:
cmCacheManager();
class CacheIterator; class CacheIterator;
friend class cmCacheManager::CacheIterator; friend class cmCacheManager::CacheIterator;
enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC, enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC,