diff options
author | H.J. Lu <hjl@lucon.org> | 2006-12-05 20:53:28 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2006-12-05 20:53:28 +0000 |
commit | f9052240d40e0cdffe3643f938a3c57c28d3e4f7 (patch) | |
tree | 07175536dc4db44668f3fe11a2179ee3dbe4db3f /gdb/cp-valprint.c | |
parent | a15a5a99c8107fe28567ea8df65094a6491ac960 (diff) | |
download | gdb-f9052240d40e0cdffe3643f938a3c57c28d3e4f7.tar.gz |
2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
* cp-valprint.c (cp_print_value_fields): Initialize tmp_obstack.
(cp_print_value): Likewise.
* p-valprint.c (pascal_object_print_value_fields): Likewise.
(pascal_object_print_value): Likewise.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 84b66fe7a81..2c086b17bdd 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -265,7 +265,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, struct type **dont_print_vb,int dont_print_statmem) { int i, len, n_baseclasses; - struct obstack tmp_obstack; + struct obstack tmp_obstack = { 0 }; char *last_dont_print = obstack_next_free (&dont_print_statmem_obstack); int fields_seen = 0; @@ -524,7 +524,7 @@ cp_print_value (struct type *type, struct type *real_type, struct ui_file *stream, int format, int recurse, enum val_prettyprint pretty, struct type **dont_print_vb) { - struct obstack tmp_obstack; + struct obstack tmp_obstack = { 0 }; struct type **last_dont_print = (struct type **) obstack_next_free (&dont_print_vb_obstack); int i, n_baseclasses = TYPE_N_BASECLASSES (type); |