mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 15:22:06 +02:00
Fix Coverity-discovered issues.
This commit is contained in:
@@ -157,7 +157,10 @@ _pdfioFileGets(pdfio_file_t *pdf, // I - PDF file
|
||||
{
|
||||
// Check for a LF after CR
|
||||
if (pdf->bufptr >= pdf->bufend)
|
||||
fill_buffer(pdf);
|
||||
{
|
||||
if (!fill_buffer(pdf))
|
||||
break;
|
||||
}
|
||||
|
||||
if (pdf->bufptr < pdf->bufend && *(pdf->bufptr) == '\n')
|
||||
pdf->bufptr ++;
|
||||
|
Reference in New Issue
Block a user