diff options
author | hyc <hyc@symas.com> | 2018-04-02 18:01:19 +0100 |
---|---|---|
committer | hyc <hyc@symas.com> | 2018-05-08 06:13:21 +0100 |
commit | 9705032618217991c88c135b8229bcc84197dd7c (patch) | |
tree | 62adc47d16bed89fe11c96a15bb7a3c036a542bd /external/db_drivers/liblmdb/mdb_load.c | |
parent | Merge pull request #3752 (diff) | |
download | monero-9705032618217991c88c135b8229bcc84197dd7c.tar.xz |
ITS#8831 move flag init into readhdr
Avoid stomping on flags from 1st readhdr invocation
Diffstat (limited to '')
-rw-r--r-- | external/db_drivers/liblmdb/mdb_load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/external/db_drivers/liblmdb/mdb_load.c b/external/db_drivers/liblmdb/mdb_load.c index 797c2f979..58a663fda 100644 --- a/external/db_drivers/liblmdb/mdb_load.c +++ b/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) { |