From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7965 invoked by alias); 14 Sep 2002 15:40:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7952 invoked from network); 14 Sep 2002 15:40:25 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (62.163.169.250) by sources.redhat.com with SMTP; 14 Sep 2002 15:40:25 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.5/8.12.5) with ESMTP id g8EFeOFI003992 for ; Sat, 14 Sep 2002 17:40:24 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.5/8.12.5) with ESMTP id g8EFeNMY039490 for ; Sat, 14 Sep 2002 17:40:23 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.5/8.12.5/Submit) id g8EFeNhZ039487; Sat, 14 Sep 2002 17:40:23 +0200 (CEST) Date: Sat, 14 Sep 2002 08:40:00 -0000 Message-Id: <200209141540.g8EFeNhZ039487@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix gdbtypes.c:check_stub_method_group. X-SW-Source: 2002-09/txt/msg00297.txt.bz2 My compiler warns about it, and rigtly so. Checked in as obvious. Mark Index: ChangeLog from Mark Kettenis * 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))