diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-12-05 20:53:28 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-12-05 20:53:28 +0000 |
commit | 9fb92a5a5b003e2741171194dc5ae5eb3ba5f4aa (patch) | |
tree | 3f00a318dd94b699e65800b0407207b27aa6f33a /gdb/p-valprint.c | |
parent | ecde4882ba83d7e1aebaffed0450b877e0126592 (diff) | |
download | gdb-9fb92a5a5b003e2741171194dc5ae5eb3ba5f4aa.zip gdb-9fb92a5a5b003e2741171194dc5ae5eb3ba5f4aa.tar.gz gdb-9fb92a5a5b003e2741171194dc5ae5eb3ba5f4aa.tar.bz2 |
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/p-valprint.c')
-rw-r--r-- | gdb/p-valprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index 33b7974..0049233 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -753,7 +753,7 @@ pascal_object_print_value_fields (struct type *type, const gdb_byte *valaddr, 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); CHECK_TYPEDEF (type); @@ -922,7 +922,7 @@ pascal_object_print_value (struct type *type, const gdb_byte *valaddr, 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); |