diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-05-14 22:18:21 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-05-19 20:45:39 -0400 |
commit | 94e34fa0adb818baacdcb6408f0a92e07f3ce7df (patch) | |
tree | 43eb653df6852ebddeed5d3c0e689b1c28fdf55c /src | |
parent | 8b1202c52c4d8f42c23b02a4cfdb097663e6e7b0 (diff) |
CDB::CDB: properly initialize activeTxn to NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/db.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db.cpp b/src/db.cpp index 21b1e0ae8e..08b6614181 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -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) |