Fix some coverity-reported issues.

This commit is contained in:
Michael R Sweet
2021-06-09 09:14:57 -04:00
parent b005175003
commit 63c0fc1926
2 changed files with 15 additions and 5 deletions

View File

@ -402,7 +402,8 @@ _pdfioDictRead(pdfio_file_t *pdf, // I - PDF file
PDFIO_DEBUG("_pdfioDictRead(pdf=%p)\n", pdf);
// Create a dictionary and start reading...
dict = pdfioDictCreate(pdf);
if ((dict = pdfioDictCreate(pdf)) == NULL)
return (NULL);
while (_pdfioTokenGet(tb, key, sizeof(key)))
{