mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
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:
parent
21d2af9e90
commit
3ed58c281a
@ -780,6 +780,8 @@ int main(int argc, char *argv[]) {
|
|||||||
/* try read next header */
|
/* try read next header */
|
||||||
if (!(mode & NOHDR))
|
if (!(mode & NOHDR))
|
||||||
rc = readhdr();
|
rc = readhdr();
|
||||||
|
else if (ferror(stdin) || feof(stdin))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (rc) {
|
switch (rc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user