mdbx-load: fix hang at EOF in the 'plain text' (i.e. no headers) mode.

Related to https://github.com/erthink/libmdbx/issues/136

Change-Id: I6ac9762bc5ac6aaf8b947b2e4abb0b4ff6a14444
This commit is contained in:
Leonid Yuriev 2020-11-15 07:54:09 +03:00
parent 21d2af9e90
commit 3ed58c281a

View File

@ -780,6 +780,8 @@ int main(int argc, char *argv[]) {
/* try read next header */
if (!(mode & NOHDR))
rc = readhdr();
else if (ferror(stdin) || feof(stdin))
break;
}
switch (rc) {