mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 10:01:02 +00:00
ITS#8831 move flag init into readhdr
Avoid stomping on flags from 1st readhdr invocation
This commit is contained in:
parent
7ed94d3122
commit
9705032618
1 changed files with 1 additions and 1 deletions
2
external/db_drivers/liblmdb/mdb_load.c
vendored
2
external/db_drivers/liblmdb/mdb_load.c
vendored
|
@ -78,6 +78,7 @@ static void readhdr(void)
|
||||||
{
|
{
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
|
flags = 0;
|
||||||
while (fgets(dbuf.mv_data, dbuf.mv_size, stdin) != NULL) {
|
while (fgets(dbuf.mv_data, dbuf.mv_size, stdin) != NULL) {
|
||||||
lineno++;
|
lineno++;
|
||||||
if (!strncmp(dbuf.mv_data, "VERSION=", STRLENOF("VERSION="))) {
|
if (!strncmp(dbuf.mv_data, "VERSION=", STRLENOF("VERSION="))) {
|
||||||
|
@ -397,7 +398,6 @@ int main(int argc, char *argv[])
|
||||||
while(!Eof) {
|
while(!Eof) {
|
||||||
MDB_val key, data;
|
MDB_val key, data;
|
||||||
int batch = 0;
|
int batch = 0;
|
||||||
flags = 0;
|
|
||||||
int appflag;
|
int appflag;
|
||||||
|
|
||||||
if (!dohdr) {
|
if (!dohdr) {
|
||||||
|
|
Loading…
Reference in a new issue