Do not shadow variables.

This commit is contained in:
Pavel Janík
2016-06-11 16:35:19 +02:00
parent 0c8875d23b
commit b175cb755b
4 changed files with 15 additions and 15 deletions

View File

@@ -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;