summaryrefslogtreecommitdiff
path: root/platform/java/mupdf_native.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-02-21 13:32:03 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-02-21 13:32:03 +0100
commit79c47af457f7b3ac8c67ffc17e7f824ad0266304 (patch)
tree628963d16c811816e7b2f8e781106d9ff8c72af9 /platform/java/mupdf_native.c
parentdc2847a52f291a1df54c25c41e3d543de210fdb4 (diff)
downloadmupdf-79c47af457f7b3ac8c67ffc17e7f824ad0266304.tar.xz
java: Fix typo in authenticatePassword.
Diffstat (limited to 'platform/java/mupdf_native.c')
-rw-r--r--platform/java/mupdf_native.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index 4e541bde..2293791f 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -4227,7 +4227,8 @@ FUN(Document_authenticatePassword)(JNIEnv *env, jobject self, jstring jpassword)
int okay = 0;
if (!ctx || !doc) return JNI_FALSE;
- if (password)
+
+ if (jpassword)
{
password = (*env)->GetStringUTFChars(env, jpassword, NULL);
if (!password) return JNI_FALSE;