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

@@ -363,6 +363,9 @@ _pdfioArrayDebug(pdfio_array_t *a, // I - Array
_pdfio_value_t *v; // Current value
if (!a)
return;
putc('[', fp);
for (i = a->num_values, v = a->values; i > 0; i --, v ++)
_pdfioValueDebug(v, fp);