Skip to content

Commit

Permalink
Make Visual Studio compiler happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Oct 10, 2023
1 parent 2e91e05 commit c4abcee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pdfio-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,10 @@ _pdfioStreamOpen(pdfio_obj_t *obj, // I - Object
// Try to decode/decompress the contents of this object...
const char *filter = pdfioDictGetName(dict, "Filter");
// Filter value
pdfio_array_t *fa; // Filter array
pdfio_array_t *fa = pdfioDictGetArray(dict, "Filter");
// Filter array

if (!filter && (fa = pdfioDictGetArray(dict, "Filter")) != NULL && pdfioArrayGetSize(fa) == 1)
if (!filter && fa && pdfioArrayGetSize(fa) == 1)
{
// Support single-valued arrays...
filter = pdfioArrayGetName(fa, 0);
Expand Down

0 comments on commit c4abcee

Please sign in to comment.