This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] another -Wuninitialized warning
- To: Daniel Berlin <dan at www dot cgsoftware dot com>
- Subject: Re: [patch] another -Wuninitialized warning
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 03 May 2001 19:01:42 -0400
- Cc: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- References: <Pine.LNX.4.33.0104301325350.27796-100000@www.cgsoftware.com>
:-)
2001-04-27 Andrew Cagney <ac131313@redhat.com>
* gdbtypes.c (check_stub_method): Always initialize ``p''.
Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.20
diff -p -r1.20 gdbtypes.c
*** gdbtypes.c 2001/04/27 00:19:09 1.20
--- gdbtypes.c 2001/04/30 17:05:51
*************** check_stub_method (struct type *type, in
*** 1410,1415 ****
--- 1410,1417 ----
/* Make sure we got back a function string that we can use. */
if (demangled_name)
p = strchr (demangled_name, '(');
+ else
+ p = NULL;
if (demangled_name == NULL || p == NULL)
error ("Internal: Cannot demangle mangled name `%s'.", mangled_name);