mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2026-01-31 23:47:56 +01:00
Add NULL check for new page contents code.
This commit is contained in:
@@ -396,7 +396,8 @@ get_contents(pdfio_obj_t *page) // I - Page object
|
||||
if (page->value.type != PDFIO_VALTYPE_DICT)
|
||||
return (NULL);
|
||||
|
||||
contents = _pdfioDictGetValue(page->value.value.dict, "Contents");
|
||||
if ((contents = _pdfioDictGetValue(page->value.value.dict, "Contents")) == NULL)
|
||||
return (NULL);
|
||||
|
||||
if (contents->type == PDFIO_VALTYPE_INDIRECT)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user