summaryrefslogtreecommitdiff
path: root/pdf/pdf_file.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-03-29 11:01:01 +0100
committerRobin Watts <Robin.Watts@artifex.com>2022-05-05 14:49:03 +0100
commitdaff44df763441a772719054746c685c70aa9c1a (patch)
treea2f4a44a19aaddcbb761111319946a5c0f2bf530 /pdf/pdf_file.c
parentad896ca27d000c79f7dade408efe9ef649d335ee (diff)
downloadghostpdl-daff44df763441a772719054746c685c70aa9c1a.tar.gz
PDFI: Use TRUE/FALSE/NULL objects as 'fast' objects.
No allocation/deallocation required.
Diffstat (limited to 'pdf/pdf_file.c')
-rw-r--r--pdf/pdf_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_file.c b/pdf/pdf_file.c
index 8515b9603..993a24c5b 100644
--- a/pdf/pdf_file.c
+++ b/pdf/pdf_file.c
@@ -1008,7 +1008,7 @@ int pdfi_filter_no_decryption(pdf_context *ctx, pdf_stream *stream_obj,
goto error;
}
}
- if (decode && pdfi_type_of(decode) != PDF_NULL && pdfi_type_of(decode) != PDF_DICT) {
+ if (decode && decode != PDF_NULL_OBJ && pdfi_type_of(decode) != PDF_DICT) {
pdfi_countdown(decode);
decode = NULL;
pdfi_set_warning(ctx, 0, NULL, W_PDF_STREAM_BAD_DECODEPARMS, "pdfi_filter_no_decryption", NULL);