projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
172d825
)
Clear any struct padding in idbuf
author
Hallvard Furuseth
<hallvard@openldap.org>
Sun, 12 Mar 2017 15:59:23 +0000
(16:59 +0100)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Sun, 19 Mar 2017 12:21:52 +0000
(13:21 +0100)
libraries/liblmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/liblmdb/mdb.c
b/libraries/liblmdb/mdb.c
index
e2b4858
..
59e3d93
100644
(file)
--- a/
libraries/liblmdb/mdb.c
+++ b/
libraries/liblmdb/mdb.c
@@
-5151,6
+5151,7
@@
mdb_env_setup_locks(MDB_env *env, MDB_name *fname, int mode, int *excl)
#define MDB_SHORT_SEMNAMES 1 /* limited to 14 chars */
#endif
if (fstat(env->me_lfd, &stbuf)) goto fail_errno;
+ memset(&idbuf, 0, sizeof(idbuf));
idbuf.dev = stbuf.st_dev;
idbuf.ino = stbuf.st_ino;
env->me_txns->mti_mutexid = mdb_hash(&idbuf, sizeof(idbuf))