Add NULL checks in the private debug APIs that testpdfio calls.

This commit is contained in:
Michael R Sweet
2024-08-21 09:22:58 -04:00
parent 6cb661f0f4
commit 7c3651671b
3 changed files with 9 additions and 0 deletions

View File

@@ -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);