aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-14 22:18:21 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-19 20:45:39 -0400
commit94e34fa0adb818baacdcb6408f0a92e07f3ce7df (patch)
tree43eb653df6852ebddeed5d3c0e689b1c28fdf55c
parent8b1202c52c4d8f42c23b02a4cfdb097663e6e7b0 (diff)
CDB::CDB: properly initialize activeTxn to NULL
-rw-r--r--src/db.cpp3
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)