2007-08-13 Michael Snyder * varobj.c (cplus_describe_child): Guard against null. Use "NULL" instead of "0" to initialize pointers. Index: varobj.c =================================================================== RCS file: /cvs/src/src/gdb/varobj.c,v retrieving revision 1.90 diff -p -r1.90 varobj.c *** varobj.c 8 Aug 2007 21:46:37 -0000 1.90 --- varobj.c 13 Aug 2007 22:37:46 -0000 *************** static void *** 2315,2321 **** cplus_describe_child (struct varobj *parent, int index, char **cname, struct value **cvalue, struct type **ctype) { ! char *name = 0; struct value *value; struct type *type; --- 2315,2321 ---- cplus_describe_child (struct varobj *parent, int index, char **cname, struct value **cvalue, struct type **ctype) { ! char *name = NULL; struct value *value; struct type *type; *************** cplus_describe_child (struct varobj *par *** 2396,2402 **** } else { ! char *access = 0; int children[3]; cplus_class_num_children (type, children); --- 2396,2402 ---- } else { ! char *access = NULL; int children[3]; cplus_class_num_children (type, children); *************** cplus_describe_child (struct varobj *par *** 2435,2441 **** /* error! */ break; } ! if (cname) *cname = xstrdup (access); --- 2435,2442 ---- /* error! */ break; } ! ! gdb_assert (access); if (cname) *cname = xstrdup (access);