Commit 54cf0e519c49e3fb44c7ca1de95a1fffbafc211c

Authored by m-holger
Committed by GitHub
2 parents c648b9a0 1eb5df92

Merge pull request #1301 from m-holger/typo

Fix gratuitous calls to bad_subsections in Xref_table::subsections
Showing 1 changed file with 1 additions and 1 deletions
libqpdf/QPDF_objects.cc
... ... @@ -493,7 +493,7 @@ Xref_table::subsections(std::string& line)
493 493 auto offset = std::get<2>(sub);
494 494 file->seek(offset + 20 * toO(count) - 1, SEEK_SET);
495 495 file->read(line.data(), 1);
496   - if (!(line[0] == '\n' || line[0] == '\n')) {
  496 + if (!(line[0] == '\n' || line[0] == '\r')) {
497 497 return bad_subsections(line, recovery_offset);
498 498 }
499 499 qpdf_offset_t pos = file->tell();
... ...