Skip to content
Permalink
Browse files

Avoid stomping on flags from first readhdr invocation

  • Loading branch information...
miltonf committed Apr 5, 2019
1 parent affe5dd commit b63192aa17794c6515d9260527abdcda91787919
Showing with 1 addition and 1 deletion.
  1. +1 −1 external/db_drivers/liblmdb/mdb_load.c
@@ -78,6 +78,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="))) {
@@ -397,7 +398,6 @@ int main(int argc, char *argv[])
while(!Eof) {
MDB_val key, data;
int batch = 0;
flags = 0;
int appflag;

if (!dohdr) {

0 comments on commit b63192a

Please sign in to comment.
You can’t perform that action at this time.