changeset 8502:9b5e369bfe92

8157653: [Parfait] Uninitialised variable in awt_Font.cpp Reviewed-by: serb, ssadetsky
author prr
date Fri, 01 Jul 2016 14:09:46 -0700
parents 569c909acc26
children c8fcec7a9a4c
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	Tue Oct 18 03:46:54 2016 +0100
+++ b/src/windows/native/sun/windows/awt_Font.cpp	Fri Jul 01 14:09:46 2016 -0700
@@ -594,7 +594,7 @@
 int AwtFont::getFontDescriptorNumber(JNIEnv *env, jobject font,
                                      jobject fontDescriptor)
 {
-    int i, num;
+    int i, num = 0;
     jobject refFontDescriptor;
     jobjectArray array;