8077394: Uninitialised memory in jdk/src/java/desktop/unix/native/libfontmanager/X11FontScaler.c
authorserb
Sun, 19 Apr 2015 10:31:06 +0300
changeset 30472 8ca94620c290
parent 30471 c1568a2416a8
child 30473 e1314bc8c877
8077394: Uninitialised memory in jdk/src/java/desktop/unix/native/libfontmanager/X11FontScaler.c Reviewed-by: azvegint, prr
jdk/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c
--- a/jdk/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c	Fri Apr 17 17:01:24 2015 +0300
+++ b/jdk/src/java.desktop/unix/native/libfontmanager/X11FontScaler.c	Sun Apr 19 10:31:06 2015 +0300
@@ -234,7 +234,7 @@
 
     NativeScalerContext *context = (NativeScalerContext*)pScalerContext;
     AWTFont xFont = (AWTFont)context->xFont;
-    AWTChar xcs;
+    AWTChar xcs = NULL;
     jfloat advance = 0.0f;
 
     if (xFont == NULL || context->ptSize == NO_POINTSIZE) {