summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-crypt.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-04-12 16:51:34 +0100
committerRobin Watts <robin.watts@artifex.com>2016-04-12 16:54:15 +0100
commit5e599f70f45c07255afbe8e7cd2fa6507e6330c4 (patch)
treec06fe41b9d89aaf08f507256323c775913a7b6d2 /source/pdf/pdf-crypt.c
parent6e328b38749bb97f908e96fc4ac4707a581a11b2 (diff)
downloadmupdf-5e599f70f45c07255afbe8e7cd2fa6507e6330c4.tar.xz
Fix some warnings.
Remove some bonkers conditions arising (presumably) as a result of search and replace.
Diffstat (limited to 'source/pdf/pdf-crypt.c')
-rw-r--r--source/pdf/pdf-crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c
index bdfdd672..49d1904b 100644
--- a/source/pdf/pdf-crypt.c
+++ b/source/pdf/pdf-crypt.c
@@ -74,7 +74,7 @@ pdf_new_crypt(fz_context *ctx, pdf_obj *dict, pdf_obj *id)
pdf_drop_crypt(ctx, crypt);
fz_throw(ctx, FZ_ERROR_GENERIC, "unspecified encryption handler");
}
- if (!pdf_name_eq(ctx, PDF_NAME_Standard, obj) != 0)
+ if (!pdf_name_eq(ctx, PDF_NAME_Standard, obj))
{
pdf_drop_crypt(ctx, crypt);
fz_throw(ctx, FZ_ERROR_GENERIC, "unknown encryption handler: '%s'", pdf_to_name(ctx, obj));