changeset 10725:70aaa6da3101

8077394: Uninitialised memory in jdk/src/java/desktop/unix/native/libfontmanager/X11FontScaler.c Reviewed-by: azvegint, prr
author serb
date Sun, 19 Apr 2015 10:31:06 +0300
parents 246383aae2e6
children b02550d62bdb
files src/solaris/native/sun/font/X11FontScaler.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/font/X11FontScaler.c	Tue Apr 14 09:34:59 2015 +0300
+++ b/src/solaris/native/sun/font/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) {