aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.cpp
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-06-11 16:35:19 +0200
committerPavel Janík <Pavel@Janik.cz>2016-08-31 16:16:05 +0200
commitb175cb755bd2b62a19dbf27daf07ae5354f9a079 (patch)
tree9306e2c794e107d4f48e4978c294716ffa8c4527 /src/wallet/db.cpp
parent0c8875d23b37bca9e37e0c387ab5365d4e8758c5 (diff)
Do not shadow variables.
Diffstat (limited to 'src/wallet/db.cpp')
-rw-r--r--src/wallet/db.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index ab7a4cf2e5..a809c9ad64 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -387,11 +387,11 @@ bool CDB::Rewrite(const string& strFile, const char* pszSkip)
while (fSuccess) {
CDataStream ssKey(SER_DISK, CLIENT_VERSION);
CDataStream ssValue(SER_DISK, CLIENT_VERSION);
- int ret = db.ReadAtCursor(pcursor, ssKey, ssValue);
- if (ret == DB_NOTFOUND) {
+ int ret1 = db.ReadAtCursor(pcursor, ssKey, ssValue);
+ if (ret1 == DB_NOTFOUND) {
pcursor->close();
break;
- } else if (ret != 0) {
+ } else if (ret1 != 0) {
pcursor->close();
fSuccess = false;
break;