8157653: [Parfait] Uninitialised variable in awt_Font.cpp
authorprr
Thu, 30 Jun 2016 11:56:27 -0700
changeset 41570 5b4a677ed287
parent 41569 aaab73f0c4d8
child 41571 37e93ae74ab8
8157653: [Parfait] Uninitialised variable in awt_Font.cpp Reviewed-by: serb, ssadetsky
jdk/src/java.desktop/windows/native/libawt/windows/awt_Font.cpp
--- a/jdk/src/java.desktop/windows/native/libawt/windows/awt_Font.cpp	Wed Jun 29 11:51:59 2016 -0400
+++ b/jdk/src/java.desktop/windows/native/libawt/windows/awt_Font.cpp	Thu Jun 30 11:56:27 2016 -0700
@@ -640,7 +640,7 @@
 int AwtFont::getFontDescriptorNumber(JNIEnv *env, jobject font,
                                      jobject fontDescriptor)
 {
-    int i, num;
+    int i, num = 0;
     jobject refFontDescriptor;
     jobjectArray array;