* gdbtypes.c (check_stub_method_group): Initialize found_stub to
authorMark Kettenis <kettenis@gnu.org>
Sat, 14 Sep 2002 15:39:52 +0000 (15:39 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sat, 14 Sep 2002 15:39:52 +0000 (15:39 +0000)
zero.

gdb/ChangeLog
gdb/gdbtypes.c

index 0252b338686f10475f90703b3fcd0048dc919cbe..ebddf386558eb929d9c3983a623e365297e73691 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-14  Mark Kettenis  <kettenis@gnu.org>
+
+       * gdbtypes.c (check_stub_method_group): Initialize found_stub to
+       zero.
+
 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
 
        * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
index a219ab5eb3c4b1cf04185109cddb0764ed58ceab..40223943b7c3e52f8c253012021cb1319a352925 100644 (file)
@@ -1793,7 +1793,7 @@ check_stub_method_group (struct type *type, int method_id)
 {
   int len = TYPE_FN_FIELDLIST_LENGTH (type, method_id);
   struct fn_field *f = TYPE_FN_FIELDLIST1 (type, method_id);
-  int j, found_stub;
+  int j, found_stub = 0;
 
   for (j = 0; j < len; j++)
     if (TYPE_FN_FIELD_STUB (f, j))