summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Dbx_mdbx/src/dbmodulechain.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Dbx_mdbx/src/dbmodulechain.cpp b/plugins/Dbx_mdbx/src/dbmodulechain.cpp
index e25c85a0b3..c133426350 100644
--- a/plugins/Dbx_mdbx/src/dbmodulechain.cpp
+++ b/plugins/Dbx_mdbx/src/dbmodulechain.cpp
@@ -28,8 +28,7 @@ int CDbxMDBX::InitModules()
txn_ptr_ro trnlck(m_txn_ro);
cursor_ptr_ro cursor(m_curModules);
- uint32_t iHash = 0;
- MDBX_val key = { &iHash, sizeof(iHash) }, data;
+ MDBX_val key, data;
while (mdbx_cursor_get(cursor, &key, &data, MDBX_NEXT) == MDBX_SUCCESS) {
uint32_t iMod = *(uint32_t*)key.iov_base;
const char *szMod = (const char*)data.iov_base;