Fix undefined behavior when trying to fetch header information on an empty file

This commit is contained in:
ado 2024-02-17 02:26:19 +01:00
parent 4bedc32b63
commit 7530be1c44

View File

@ -155,7 +155,7 @@ public:
return;
}
if (header_.empty()) {
if (header_.empty() && !eof()) {
split_header_data();
}