changeset 7401:8fc3e4015b09

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
author jgodinez
date Mon, 04 Feb 2013 12:04:38 -0800
parents 1df2944db538
children 0e929be3a9da 37719b174e87
files src/solaris/native/sun/java2d/x11/X11SurfaceData.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/java2d/x11/X11SurfaceData.c	Mon Feb 04 19:50:06 2013 +0400
+++ b/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 */
 }