Browse Source

CDB::CDB: properly initialize activeTxn to NULL

0.8
Jeff Garzik 13 years ago committed by Jeff Garzik
parent
commit
94e34fa0ad
  1. 3
      src/db.cpp

3
src/db.cpp

@ -110,7 +110,8 @@ void CDBEnv::CheckpointLSN(std::string strFile) @@ -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)

Loading…
Cancel
Save