ITS#8831 move flag init into readhdr

Avoid stomping on flags from 1st readhr invocation
mdb.master3
Howard Chu 7 years ago
parent 5a5e056f22
commit 8218d06717
  1. 2
      libraries/liblmdb/mdb_load.c

@ -65,6 +65,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="))) {
@ -385,7 +386,6 @@ int main(int argc, char *argv[])
while(!Eof) {
MDB_val key, data;
int batch = 0;
flags = 0;
int appflag;
if (!dohdr) {

Loading…
Cancel
Save