summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-04-18 02:46:31 +0800
committerSebastian Rasmussen <sebras@gmail.com>2017-04-18 19:39:40 +0800
commit59698e3050a468b870e6879a4ce06bf9181e7c6b (patch)
tree41c826bbb7d9290fc069e85830e27c1a40543026 /source/pdf
parent55e44973a3e54950313a7f938b5c254184dd34d8 (diff)
downloadmupdf-59698e3050a468b870e6879a4ce06bf9181e7c6b.tar.xz
Consistently use pdf_name_eq() where possible.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-portfolio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-portfolio.c b/source/pdf/pdf-portfolio.c
index c86c254b..44201b41 100644
--- a/source/pdf/pdf-portfolio.c
+++ b/source/pdf/pdf-portfolio.c
@@ -514,7 +514,7 @@ pdf_obj *pdf_portfolio_entry_info(fz_context *ctx, pdf_document *doc, int entry,
if (ef)
obj = pdf_dict_getl(ctx, obj, PDF_NAME_EF, PDF_NAME_F, PDF_NAME_Params, NULL);
res = pdf_dict_get(ctx, obj, lookup);
- if (res == NULL && lookup == PDF_NAME_UF)
+ if (res == NULL && pdf_name_eq(ctx, lookup, PDF_NAME_UF))
res = pdf_dict_get(ctx, obj, PDF_NAME_F);
return res;
}
@@ -715,7 +715,7 @@ void pdf_set_portfolio_entry_info(fz_context *ctx, pdf_document *doc, int entry,
if (ef)
obj = pdf_dict_getl(ctx, obj, PDF_NAME_EF, PDF_NAME_F, PDF_NAME_Params, NULL);
pdf_dict_put(ctx, obj, lookup, data);
- if (lookup == PDF_NAME_UF)
+ if (pdf_name_eq(ctx, lookup, PDF_NAME_UF))
pdf_dict_put(ctx, obj, PDF_NAME_F, data);
return;
}