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

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; int ret;
if (pszFile == NULL) if (pszFile == NULL)