< prev index next >

src/share/vm/prims/jvmtiRedefineClasses.cpp

Print this page
rev 9067 : 8139040: Fix initializations before ShouldNotReachHere()

@@ -336,11 +336,11 @@
 
       int name_and_type_ref_i = scratch_cp->uncached_name_and_type_ref_index_at(scratch_i);
       int new_name_and_type_ref_i = find_or_append_indirect_entry(scratch_cp, name_and_type_ref_i,
                                                           merge_cp_p, merge_cp_length_p, THREAD);
 
-      const char *entry_name;
+      const char *entry_name = NULL;
       switch (scratch_cp->tag_at(scratch_i).value()) {
       case JVM_CONSTANT_Fieldref:
         entry_name = "Fieldref";
         (*merge_cp_p)->field_at_put(*merge_cp_length_p, new_klass_ref_i,
           new_name_and_type_ref_i);
< prev index next >