summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-form.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/pdf-form.c')
-rw-r--r--source/pdf/pdf-form.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c
index 9dc40f30..dfaefe98 100644
--- a/source/pdf/pdf-form.c
+++ b/source/pdf/pdf-form.c
@@ -340,7 +340,7 @@ static void execute_action(fz_context *ctx, pdf_document *doc, pdf_obj *obj, pdf
pdf_obj *js = pdf_dict_get(ctx, a, PDF_NAME_JS);
if (js)
{
- char *code = pdf_to_utf8(ctx, doc, js);
+ char *code = pdf_to_utf8(ctx, js);
fz_try(ctx)
{
pdf_js_execute(doc->js, code);