* gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
2007-09-04 Michael Snyder <msnyder@access-company.com>
+ * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
+
* stabsread.c (patch_block_status): Guard against null.
* Makefile.in (stabsread.o): Depend on gdb_assert.h.
CORE_ADDR vtbl;
struct minimal_symbol *minsym;
struct symbol *sym;
- char *demangled_name;
+ char *demangled_name, *p;
struct type *btype;
if (full)
/* If we just skip the prefix, we get screwed by namespaces */
demangled_name=cplus_demangle(demangled_name,DMGL_PARAMS|DMGL_ANSI);
- *(strchr(demangled_name,' '))=0;
+ p = strchr (demangled_name, ' ');
+ if (p)
+ *p = '\0';
/* Lookup the type for the name */
/* FIXME: chastain/2003-11-26: block=NULL is bogus. See pr gdb/1465. */