Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
52c0df1d
Commit
52c0df1d
authored
Mar 12, 2017
by
Hallvard Furuseth
Browse files
Clear any struct padding in idbuf
parent
172d8251
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
52c0df1d
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment