changeset 12185:1818c0df435a jdk8u111-b03

8157653: [Parfait] Uninitialised variable in awt_Font.cpp Reviewed-by: serb, ssadetsky
author prr
date Fri, 01 Jul 2016 14:09:46 -0700
parents b9662ab7f2ed
children edc99235661a
files src/windows/native/sun/windows/awt_Font.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Font.cpp	Wed Jun 29 12:15:09 2016 -0700
+++ b/src/windows/native/sun/windows/awt_Font.cpp	Fri Jul 01 14:09:46 2016 -0700
@@ -607,7 +607,7 @@
 int AwtFont::getFontDescriptorNumber(JNIEnv *env, jobject font,
                                      jobject fontDescriptor)
 {
-    int i, num;
+    int i, num = 0;
     jobject refFontDescriptor;
     jobjectArray array;