summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-11-03 12:41:19 +0000
committerRobin Watts <robin.watts@artifex.com>2016-11-03 18:10:50 +0000
commita420ccd198b16dacf1cb497bdf82c58fcd65e2e6 (patch)
treee3314c4f98cf37cfa90f8c5d8e9a39ee42d6c917 /platform
parent228249a4745882ebeab326b63b3cfbb5f5f8baef (diff)
downloadmupdf-a420ccd198b16dacf1cb497bdf82c58fcd65e2e6.tar.xz
Fix MSVC build of JNI native code.
Diffstat (limited to 'platform')
-rw-r--r--platform/java/mupdf_native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index c83b0965..2eb1de63 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -5541,6 +5541,7 @@ FUN(StructuredText_getBlocks)(JNIEnv *env, jobject self)
for (l = 0; l < block->len; l++)
{
+ int len = 0;
// make a line
line = &block->lines[l];
jline = (*env)->NewObject(env, cls_TextLine, mid_TextLine_init, self);
@@ -5554,7 +5555,6 @@ FUN(StructuredText_getBlocks)(JNIEnv *env, jobject self)
(*env)->DeleteLocalRef(env, jrect);
// count the spans
- int len = 0;
for (span = line->first_span; span; span = span->next)
len++;