changeset 50360:8fbbd19bf3a1

8204085: avoid printing uninitialized pointer in java.desktop/windows/native/libawt/java2d/windows/GDIWindowSurfaceData.cpp Reviewed-by: clanger, prr, serb, stuefe
author mbaesken
date Wed, 30 May 2018 15:01:36 +0200
parents dd9ec7e7e35a
children 071f1fe0df5f
files src/java.desktop/windows/native/libawt/java2d/windows/GDIWindowSurfaceData.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/windows/native/libawt/java2d/windows/GDIWindowSurfaceData.cpp	Thu May 31 13:04:30 2018 -0700
+++ b/src/java.desktop/windows/native/libawt/java2d/windows/GDIWindowSurfaceData.cpp	Wed May 30 15:01:36 2018 +0200
@@ -490,7 +490,7 @@
 JNIEXPORT AwtComponent * JNICALL
 GDIWindowSurfaceData_GetComp(JNIEnv *env, GDIWinSDOps *wsdo)
 {
-    PDATA pData;
+    PDATA pData = NULL;
     jobject localObj = env->NewLocalRef(wsdo->peer);
 
     if (localObj == NULL || (pData = JNI_GET_PDATA(localObj)) == NULL) {