summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-object.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-05-25 10:41:20 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-05-25 12:49:49 +0200
commitb58ed0397a07277fd55527c2fff3490f6057c035 (patch)
tree11c822d96792eda0a203899886890f618b16fb79 /source/pdf/pdf-object.c
parent2dd8a8e7c4cc37c9b4a2c3d961739ad14259a83a (diff)
downloadmupdf-b58ed0397a07277fd55527c2fff3490f6057c035.tar.xz
Bug 695949: Fix bug in pdf_dict_del.
Fir typo in pdf_dict_del. Issue and fix both provided by Willus (William Menninger).
Diffstat (limited to 'source/pdf/pdf-object.c')
-rw-r--r--source/pdf/pdf-object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c
index 72d79c8b..c93a9d52 100644
--- a/source/pdf/pdf-object.c
+++ b/source/pdf/pdf-object.c
@@ -1524,7 +1524,7 @@ pdf_dict_del(fz_context *ctx, pdf_obj *obj, pdf_obj *key)
if (key < PDF_OBJ__LIMIT)
pdf_dict_dels(ctx, obj, PDF_NAMES[(intptr_t)key]);
else if (key->kind == PDF_NAME)
- pdf_dict_dels(ctx, obj, NAME(obj)->n);
+ pdf_dict_dels(ctx, obj, NAME(key)->n);
/* else Can't warn */
}