8026702: Fix for 8025429 breaks jdk build on windows
authorbae
Wed, 16 Oct 2013 17:13:15 +0400
changeset 21228 53476a342542
parent 21227 1cae198f4f9c
child 21229 dfcbcf500680
8026702: Fix for 8025429 breaks jdk build on windows Reviewed-by: serb
jdk/src/share/native/sun/java2d/cmm/lcms/LCMS.c
--- a/jdk/src/share/native/sun/java2d/cmm/lcms/LCMS.c	Tue Oct 15 14:24:49 2013 -0700
+++ b/jdk/src/share/native/sun/java2d/cmm/lcms/LCMS.c	Wed Oct 16 17:13:15 2013 +0400
@@ -658,6 +658,8 @@
 JNIEXPORT jobject JNICALL Java_sun_java2d_cmm_lcms_LCMS_getProfileID
   (JNIEnv *env, jclass cls, jobject pf)
 {
+    jclass clsLcmsProfile;
+    jobject cmmProfile;
     jfieldID fid = (*env)->GetFieldID (env,
         (*env)->GetObjectClass(env, pf),
         "cmmProfile", "Lsun/java2d/cmm/Profile;");
@@ -665,13 +667,13 @@
         return NULL;
     }
 
-    jclass clsLcmsProfile = (*env)->FindClass(env,
+    clsLcmsProfile = (*env)->FindClass(env,
             "sun/java2d/cmm/lcms/LCMSProfile");
     if (clsLcmsProfile == NULL) {
         return NULL;
     }
 
-    jobject cmmProfile = (*env)->GetObjectField (env, pf, fid);
+    cmmProfile = (*env)->GetObjectField (env, pf, fid);
 
     if (JNU_IsNull(env, cmmProfile)) {
         return NULL;