Fix resplit segmentation fault, fix issues when working with empty files

This commit is contained in:
ado
2023-07-10 22:21:07 +02:00
parent a7a97b3ba8
commit 956156b412
3 changed files with 8 additions and 8 deletions

View File

@@ -37,6 +37,10 @@ public:
: file_name_{file_name}, reader_{file_name_, delim} {
if (reader_.file_) {
read_line();
if (eof_) {
set_error_eof_reached();
return;
}
if constexpr (ignore_header) {
ignore_next();
} else {