ITS#8831 move flag init into readhdr

Avoid stomping on flags from 1st readhdr invocation
This commit is contained in:
hyc 2018-04-02 18:01:19 +01:00
parent 7ed94d3122
commit 9705032618

View file

@ -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) {