Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
9e859dd1
Commit
9e859dd1
authored
Apr 02, 2018
by
Howard Chu
Browse files
ITS#8831 move flag init into readhdr
Avoid stomping on flags from 1st readhr invocation
parent
3b01bbbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb_load.c
View file @
9e859dd1
...
...
@@ -68,6 +68,7 @@ static void readhdr(void)
{
char
*
ptr
;
flags
=
0
;
while
(
fgets
(
dbuf
.
mv_data
,
dbuf
.
mv_size
,
stdin
)
!=
NULL
)
{
lineno
++
;
if
(
!
strncmp
(
dbuf
.
mv_data
,
"VERSION="
,
STRLENOF
(
"VERSION="
)))
{
...
...
@@ -374,7 +375,6 @@ int main(int argc, char *argv[])
while
(
!
Eof
)
{
MDB_val
key
,
data
;
int
batch
=
0
;
flags
=
0
;
if
(
!
dohdr
)
{
dohdr
=
1
;
...
...
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