Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
1f191ba9
Commit
1f191ba9
authored
Dec 31, 2013
by
Hallvard Furuseth
Browse files
mdb_page_malloc(): Move VGMEMP_ALLOC before memset
parent
ce2a0d40
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
1f191ba9
...
...
@@ -1389,11 +1389,11 @@ mdb_page_malloc(MDB_txn *txn, unsigned num)
off
=
sz
-
psize
;
}
if
((
ret
=
malloc
(
sz
))
!=
NULL
)
{
VGMEMP_ALLOC
(
env
,
ret
,
sz
);
if
(
!
(
env
->
me_flags
&
MDB_NOMEMINIT
))
{
memset
((
char
*
)
ret
+
off
,
0
,
psize
);
ret
->
mp_pad
=
0
;
}
VGMEMP_ALLOC
(
env
,
ret
,
sz
);
}
return
ret
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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