diff options
| author | Pavel Janík <[email protected]> | 2016-06-11 16:35:19 +0200 |
|---|---|---|
| committer | Pavel Janík <[email protected]> | 2016-08-31 16:16:05 +0200 |
| commit | b175cb755bd2b62a19dbf27daf07ae5354f9a079 (patch) | |
| tree | 9306e2c794e107d4f48e4978c294716ffa8c4527 /src/wallet/db.cpp | |
| parent | Merge #8163: Do not shadow global RPC table variable (tableRPC) (diff) | |
| download | discoin-b175cb755bd2b62a19dbf27daf07ae5354f9a079.tar.xz discoin-b175cb755bd2b62a19dbf27daf07ae5354f9a079.zip | |
Do not shadow variables.
Diffstat (limited to 'src/wallet/db.cpp')
| -rw-r--r-- | src/wallet/db.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index ab7a4cf2e..a809c9ad6 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; |