CDB::CDB: properly initialize activeTxn to NULL

This commit is contained in:
Jeff Garzik 2012-05-14 22:18:21 -04:00 committed by Jeff Garzik
parent 8b1202c52c
commit 94e34fa0ad
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ void CDBEnv::CheckpointLSN(std::string strFile)
}
CDB::CDB(const char *pszFile, const char* pszMode) : pdb(NULL)
CDB::CDB(const char *pszFile, const char* pszMode) :
pdb(NULL), activeTxn(NULL)
{
int ret;
if (pszFile == NULL)