summaryrefslogtreecommitdiff
path: root/platform/java/mupdf_native.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-21 16:02:29 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-03-21 16:09:22 +0100
commit62f6df06680cf62b9ac88837f9db3eed9499fcbc (patch)
treed155d10c273907436e046abb2fefd2baaa3527c0 /platform/java/mupdf_native.c
parent56dba0cb59c2e4fff9b8b00a62c40906966f181a (diff)
downloadmupdf-62f6df06680cf62b9ac88837f9db3eed9499fcbc.tar.xz
Fix uninitialized value errors.
Diffstat (limited to 'platform/java/mupdf_native.c')
-rw-r--r--platform/java/mupdf_native.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index 97052771..38bd077b 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -2941,7 +2941,7 @@ FUN(Text_getBounds)(JNIEnv *env, jobject self, jobject jstroke, jobject jctm)
fz_text *text = from_Text(env, self);
fz_stroke_state *stroke = from_StrokeState(env, jstroke);
fz_matrix ctm = from_Matrix(env, jctm);
- jobject jrect;
+ jobject jrect = NULL;
fz_rect rect;
if (ctx == NULL || text == NULL)
@@ -3249,7 +3249,7 @@ JNIEXPORT jlong JNICALL
FUN(Annotation_advance)(JNIEnv *env, jobject self)
{
fz_context *ctx = get_context(env);
- fz_annot *annot;
+ fz_annot *annot = NULL;
if (ctx == NULL || self == NULL)
return 0;
@@ -3502,7 +3502,7 @@ FUN(Page_getBounds)(JNIEnv *env, jobject self)
{
fz_context *ctx = get_context(env);
fz_page *page = from_Page(env, self);
- jobject jrect;
+ jobject jrect = NULL;
fz_rect rect;
if (ctx == NULL || page == NULL)