mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:44:13 +08:00
mdbx: fix 'mdb_copy' init warning.
Change-Id: Ifc3d0b565a0dd6d6da40e7fe2be2c9ff0f5458fb
This commit is contained in:
parent
eb3a9505a3
commit
a3a98a7a2e
3
mdb.c
3
mdb.c
@ -9301,12 +9301,13 @@ mdb_env_copyfd1(MDB_env *env, HANDLE fd)
|
||||
{
|
||||
MDB_meta *mm;
|
||||
MDB_page *mp;
|
||||
mdb_copy my = {0};
|
||||
mdb_copy my;
|
||||
MDB_txn *txn = NULL;
|
||||
pthread_t thr;
|
||||
pgno_t root, new_root;
|
||||
int rc = MDB_SUCCESS;
|
||||
|
||||
memset(&my, 0, sizeof(my));
|
||||
if ((rc = pthread_mutex_init(&my.mc_mutex, NULL)) != 0)
|
||||
return rc;
|
||||
if ((rc = pthread_cond_init(&my.mc_cond, NULL)) != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user