mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-10-10 04:26:56 +02:00
Add NULL checks in the private debug APIs that testpdfio calls.
This commit is contained in:
@@ -194,6 +194,9 @@ _pdfioDictDebug(pdfio_dict_t *dict, // I - Dictionary
|
||||
_pdfio_pair_t *pair; // Current pair
|
||||
|
||||
|
||||
if (!dict)
|
||||
return;
|
||||
|
||||
for (i = dict->num_pairs, pair = dict->pairs; i > 0; i --, pair ++)
|
||||
{
|
||||
fprintf(fp, "/%s", pair->key);
|
||||
|
Reference in New Issue
Block a user