From a3a98a7a2edbc225d4ad6d3254c529840ec04303 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Wed, 20 Jul 2016 12:51:25 +0300 Subject: [PATCH] mdbx: fix 'mdb_copy' init warning. Change-Id: Ifc3d0b565a0dd6d6da40e7fe2be2c9ff0f5458fb --- mdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mdb.c b/mdb.c index 43fb7dbe..ff3188e2 100644 --- a/mdb.c +++ b/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)