# HG changeset patch # User serb # Date 1429428666 -10800 # Node ID 8ca94620c290971ea30fde9cd35b3ebcb52cfb99 # Parent c1568a2416a8df72ef3082e60ba5ec2f64ae620c 8077394: Uninitialised memory in jdk/src/java/desktop/unix/native/libfontmanager/X11FontScaler.c Reviewed-by: azvegint, prr diff -r c1568a2416a8 -r 8ca94620c290 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) {