summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-04 20:17:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-04 20:17:07 +0300
commit2edf9516a5442149fcadd241f8cb875c79de6841 (patch)
tree710eda4230f94b1bbce4b69a199f98b353c2d71d /plugins/Dbx_mdbx
parent3c8113e543388f8c29fdc4e5b311d60a8a0a8302 (diff)
this code isn't needed at all
Diffstat (limited to 'plugins/Dbx_mdbx')
-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;