Compare commits
1 commit
master
...
Osyotr/pat
Author | SHA1 | Date | |
---|---|---|---|
|
cbe49e4924 |
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ inline Result CsvParser::read_row(std::map<std::string, std::string> & obj)
|
|||
if (!getline(csv_stream, row))
|
||||
return {ResultCode::END_OF_FILE, {}};
|
||||
|
||||
if (row == "\r")
|
||||
if (row.empty() || row == "\r")
|
||||
return ResultCode::OK;
|
||||
|
||||
const std::vector<std::string> fields_values = split_record(row);
|
||||
|
|
Loading…
Add table
Reference in a new issue