From: Mark Kettenis Date: Sat, 14 Sep 2002 15:39:52 +0000 (+0000) Subject: * gdbtypes.c (check_stub_method_group): Initialize found_stub to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f710f4fc2c1ddb800d5c7ca668de89a60bda021c;p=binutils-gdb.git * gdbtypes.c (check_stub_method_group): Initialize found_stub to zero. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0252b338686..ebddf386558 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-09-14 Mark Kettenis + + * gdbtypes.c (check_stub_method_group): Initialize found_stub to + zero. + 2002-09-14 Corinna Vinschen * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index a219ab5eb3c..40223943b7c 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -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))