db_lmdb: fix use of uninitialized key in for_blocks_range

This commit is contained in:
moneromooo-monero 2017-09-19 14:11:24 +01:00
parent 373ce4ab09
commit 14e5d77939
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -2420,8 +2420,8 @@ 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);
op = MDB_SET;
k = MDB_val{sizeof(h1), (void*)&h1};
op = MDB_SET;
} else
{
op = MDB_FIRST;