Fix variable shadowing on clang

This commit is contained in:
Konstantinos Sideris 2018-07-18 17:11:02 +03:00
parent e4dedbcaba
commit 00f99d9ae5
1 changed files with 3 additions and 3 deletions

View File

@ -878,9 +878,9 @@ Cache::saveState(const mtx::responses::Sync &res)
txn.commit();
for (const auto &room : res.rooms.join) {
auto txn = lmdb::txn::begin(env_);
notifyForReadReceipts(txn, room.first);
txn.commit();
auto tmpTxn = lmdb::txn::begin(env_);
notifyForReadReceipts(tmpTxn, room.first);
tmpTxn.commit();
}
}