8005052: [parfait] #416 X11SurfaceData.c UNINITIALISED OR MISSING RETURN VALUE
authorjgodinez
Mon, 04 Feb 2013 12:04:38 -0800
changeset 15504 c13b899e2b15
parent 15503 39523ee9d3be
child 15509 45fdd762011d
child 15627 46054ae31dfc
8005052: [parfait] #416 X11SurfaceData.c UNINITIALISED OR MISSING RETURN VALUE 8005054: [parfait] #417 X11SurfaceData.c UNINITIALISED OR MISSING RETURN VALUE Reviewed-by: prr, vadim Contributed-by: jia-hong.chen@oracle.com
jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c
--- a/jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c	Mon Feb 04 19:50:06 2013 +0400
+++ b/jdk/src/solaris/native/sun/java2d/x11/X11SurfaceData.c	Mon Feb 04 12:04:38 2013 -0800
@@ -135,11 +135,11 @@
           useMitShmPixmaps = JNI_FALSE;
         }
     }
-
-    return JNI_TRUE;
 #endif /* MITSHM */
 
 #endif /* !HEADLESS */
+
+    return JNI_TRUE;
 }
 
 
@@ -468,8 +468,8 @@
         return JNI_FALSE;
     }
 
+#endif /* !HEADLESS */
     return JNI_TRUE;
-#endif /* !HEADLESS */
 }