aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-06-04 22:45:22 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-06-05 00:52:36 +0200
commit90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb (patch)
tree1f830a3679ef00b774dc8ac6b216366f2ed52a68 /src/wallet/db.cpp
parentf259263a7b11c6ff925851985ef0082b0a190a57 (diff)
downloadbitcoin-90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb.tar.xz
Limit variable scope
Diffstat (limited to 'src/wallet/db.cpp')
-rw-r--r--src/wallet/db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index 25f6bdd9d9..2df438989a 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -361,7 +361,6 @@ void CDBEnv::CheckpointLSN(const std::string& strFile)
CDB::CDB(CWalletDBWrapper& dbw, const char* pszMode, bool fFlushOnCloseIn) : pdb(NULL), activeTxn(NULL)
{
- int ret;
fReadOnly = (!strchr(pszMode, '+') && !strchr(pszMode, 'w'));
fFlushOnClose = fFlushOnCloseIn;
env = dbw.env;
@@ -384,6 +383,7 @@ CDB::CDB(CWalletDBWrapper& dbw, const char* pszMode, bool fFlushOnCloseIn) : pdb
++env->mapFileUseCount[strFile];
pdb = env->mapDb[strFile];
if (pdb == NULL) {
+ int ret;
pdb = new Db(env->dbenv, 0);
bool fMockDb = env->IsMock();