This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix gdbtypes.c:check_stub_method_group.


My compiler warns about it, and rigtly so.  Checked in as obvious.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* gdbtypes.c (check_stub_method_group): Initialize found_stub to
	zero.

Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.57
diff -u -p -r1.57 gdbtypes.c
--- gdbtypes.c 14 Sep 2002 02:09:39 -0000 1.57
+++ gdbtypes.c 14 Sep 2002 15:38:29 -0000
@@ -1793,7 +1793,7 @@ check_stub_method_group (struct type *ty
 {
   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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]