From 94e34fa0adb818baacdcb6408f0a92e07f3ce7df Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Mon, 14 May 2012 22:18:21 -0400 Subject: CDB::CDB: properly initialize activeTxn to NULL --- src/db.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/db.cpp') 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) -- cgit v1.2.3