diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-09-21 12:07:07 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-09-21 12:07:08 +0200 |
commit | bd85a47a29d6fec4ac5c0488b55d5b0551ce0a30 (patch) | |
tree | acb1aa1222f349548f3d53b16dfc5ce64415aaed /src | |
parent | Merge pull request #2479 (diff) | |
parent | db_lmdb: fix use of uninitialized key in for_blocks_range (diff) | |
download | monero-bd85a47a29d6fec4ac5c0488b55d5b0551ce0a30.tar.xz |
Merge pull request #2477
9aeae7a2 db_lmdb: fix use of uninitialized key in for_blocks_range (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index b6978bdc4..c6e24ef98 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -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; |