summaryrefslogtreecommitdiff
path: root/pdf/pdf_crypt.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-12-08 23:36:20 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-12-08 23:36:20 +0100
commit2af3baffb58f22ddf3ac5944d2677b981763e03d (patch)
tree70d1dfc4ea490b053072b2ea68ad250b8a96972e /pdf/pdf_crypt.c
parent62ff8552500694c96b998d2aac6fbc47ab2d9395 (diff)
downloadmupdf-2af3baffb58f22ddf3ac5944d2677b981763e03d.tar.xz
Stylistic changes when testing pointer values for NULL.
Also: use 'cannot' instead of 'failed to' in error messages.
Diffstat (limited to 'pdf/pdf_crypt.c')
-rw-r--r--pdf/pdf_crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_crypt.c b/pdf/pdf_crypt.c
index 692ed09e..940d966a 100644
--- a/pdf/pdf_crypt.c
+++ b/pdf/pdf_crypt.c
@@ -266,7 +266,7 @@ pdf_parse_crypt_filter(fz_context *ctx, pdf_crypt_filter *cf, fz_obj *cf_obj, ch
cf->method = PDF_CRYPT_NONE;
cf->length = defaultlength;
- if (cf_obj == NULL)
+ if (!cf_obj)
{
cf->method = (is_identity ? PDF_CRYPT_NONE : PDF_CRYPT_RC4);
return;