Commit 8218d067 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#8831 move flag init into readhdr

Avoid stomping on flags from 1st readhr invocation
parent 5a5e056f
...@@ -65,6 +65,7 @@ static void readhdr(void) ...@@ -65,6 +65,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="))) {
...@@ -385,7 +386,6 @@ int main(int argc, char *argv[]) ...@@ -385,7 +386,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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment