Skip to content

PDFDoc::setup: Always set errCode on failure

Adam Sampson requested to merge atsampson/poppler:pdfdoc-errcode into master

When something goes wrong, PDFDoc::setup should return false and set errCode to indicate what went wrong. The two new checks added at the top didn't set errCode.

(Found while diagnosing Debian bug 968354 - if you open an empty file, PDFDoc would be left with isOK() returning false, but getErrCode() returning errNone.)

Merge request reports