mdbx: fix 'mdb_copy' init warning.

Change-Id: Ifc3d0b565a0dd6d6da40e7fe2be2c9ff0f5458fb
This commit is contained in:
Leo Yuriev 2016-07-20 12:51:25 +03:00
parent eb3a9505a3
commit a3a98a7a2e

3
mdb.c
View File

@ -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)