hotspot/src/share/vm/classfile/compactHashtable.cpp
changeset 33589 7cbd1b2c139b
parent 31386 e54c60e0359c
child 34242 e530decd7c63
--- a/hotspot/src/share/vm/classfile/compactHashtable.cpp	Mon Oct 19 15:03:58 2015 +0200
+++ b/hotspot/src/share/vm/classfile/compactHashtable.cpp	Thu Oct 22 13:07:10 2015 -0400
@@ -422,7 +422,7 @@
 
 int HashtableTextDump::scan_string_prefix() {
   // Expect /[0-9]+: /
-  int utf8_length;
+  int utf8_length = 0;
   get_num(':', &utf8_length);
   if (*_p != ' ') {
     corrupted(_p, "Wrong prefix format for string");
@@ -433,13 +433,13 @@
 
 int HashtableTextDump::scan_symbol_prefix() {
   // Expect /[0-9]+ (-|)[0-9]+: /
-  int utf8_length;
+  int utf8_length = 0;
   get_num(' ', &utf8_length);
-    if (*_p == '-') {
-     _p++;
+  if (*_p == '-') {
+    _p++;
   }
   int ref_num;
-  (void)get_num(':', &ref_num);
+  get_num(':', &ref_num);
   if (*_p != ' ') {
     corrupted(_p, "Wrong prefix format for symbol");
   }