mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
db_lmdb: fix use of uninitialized key in for_blocks_range
This commit is contained in:
parent
1a73843cec
commit
9aeae7a224
@ -2420,7 +2420,7 @@ bool BlockchainLMDB::for_blocks_range(const uint64_t& h1, const uint64_t& h2, st
|
||||
MDB_cursor_op op;
|
||||
if (h1)
|
||||
{
|
||||
MDB_val_set(k, h1);
|
||||
k = MDB_val{sizeof(h1), (void*)&h1};
|
||||
op = MDB_SET;
|
||||
} else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user