From: Howard Chu Date: Wed, 9 Jul 2014 19:05:37 +0000 (-0700) Subject: Zero-init copy2 writebuf X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~126^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7f038d0f15bec57b4c07aa3f31cd5564c88a1897;p=openldap Zero-init copy2 writebuf --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 2b41c2e2dd..5e7716151d 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8445,6 +8445,7 @@ mdb_env_copyfd1(MDB_env *env, HANDLE fd) if (rc) return rc; #endif + memset(my.mc_wbuf[0], 0, MDB_WBUF*2); my.mc_wbuf[1] = my.mc_wbuf[0] + MDB_WBUF; my.mc_wlen[0] = 0; my.mc_wlen[1] = 0;