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]

Re: [patch] another -Wuninitialized warning


:-)
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);

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