aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-v3-abi.c
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/gnu-v3-abi.c
parent95b25ccde7924f651710459c63c004d6a929cb29 (diff)
* gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r--gdb/gnu-v3-abi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c
index 72ca2a16d0..1095c60b9e 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;