aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-03-19 18:13:43 +0000
committerTom Tromey <tromey@redhat.com>2012-03-19 18:13:43 +0000
commit5ff5c7b436a6887a4a910659ce276ea75496a92b (patch)
tree104877d278a346a399d4ddf7a380be970f456ade /gdb
parent95b25ccde7924f651710459c63c004d6a929cb29 (diff)
downloadgdb-5ff5c7b436a6887a4a910659ce276ea75496a92b.zip
gdb-5ff5c7b436a6887a4a910659ce276ea75496a92b.tar.gz
gdb-5ff5c7b436a6887a4a910659ce276ea75496a92b.tar.bz2
* gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gnu-v3-abi.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7325047..0dc49a3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-19 Tom Tromey <tromey@redhat.com>
+
+ * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
+
2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
PR symtab/13777
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 72ca2a1..1095c60 100644
--- a/gdb/gnu-v3-abi.c
+++ b/gdb/gnu-v3-abi.c
@@ -907,7 +907,7 @@ gnuv3_print_vtable (struct value *value)
struct value_print_options opts;
htab_t offset_hash;
struct cleanup *cleanup;
- VEC (value_and_voffset_p) *result_vec;
+ VEC (value_and_voffset_p) *result_vec = NULL;
struct value_and_voffset *iter;
int i, count;