Implement pdfioFileSetPermissions.

This commit is contained in:
Michael R Sweet
2021-10-10 22:27:09 -04:00
parent 37e80d67b1
commit 61a7964d90
5 changed files with 249 additions and 12 deletions

View File

@@ -389,7 +389,7 @@ pdfioArrayGetBinary(
size_t n, // I - Index
size_t *length) // O - Length of string
{
if (!a || n >= a->num_values || a->values[n].type != PDFIO_VALTYPE_BINARY || !length)
if (!a || n >= a->num_values || a->values[n].type != PDFIO_VALTYPE_BINARY)
{
if (length)
*length = 0;
@@ -398,7 +398,9 @@ pdfioArrayGetBinary(
}
else
{
*length = a->values[n].value.binary.datalen;
if (length)
*length = a->values[n].value.binary.datalen;
return (a->values[n].value.binary.data);
}
}