changeset 2634:a558beaa5c57 draft

CDB::CDB: properly initialize activeTxn to NULL
author Jeff Garzik <jgarzik@exmulti.com>
date Mon, 14 May 2012 22:18:21 -0400 (2012-05-15)
parents a7a1bf716c1a
children c8269e1811c5
files src/db.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/db.cpp
+++ b/src/db.cpp
@@ -110,7 +110,8 @@
 }
 
 
-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)